mirror of
https://github.com/home-assistant/frontend.git
synced 2025-08-02 05:57:54 +00:00
Fix button position entity settings dialog (#6395)
This commit is contained in:
parent
a9071d7920
commit
9ad9c569a6
@ -51,7 +51,7 @@ export class HaDialog extends MwcDialog {
|
|||||||
padding: var(--dialog-content-padding, 20px 24px);
|
padding: var(--dialog-content-padding, 20px 24px);
|
||||||
}
|
}
|
||||||
.mdc-dialog .mdc-dialog__surface {
|
.mdc-dialog .mdc-dialog__surface {
|
||||||
position: var(--dialog-content-position, relative);
|
position: var(--dialog-surface-position, relative);
|
||||||
min-height: var(--mdc-dialog-min-height, auto);
|
min-height: var(--mdc-dialog-min-height, auto);
|
||||||
}
|
}
|
||||||
.header_button {
|
.header_button {
|
||||||
|
@ -248,6 +248,7 @@ export class MoreInfoDialog extends LitElement {
|
|||||||
haStyleDialog,
|
haStyleDialog,
|
||||||
css`
|
css`
|
||||||
ha-dialog {
|
ha-dialog {
|
||||||
|
--dialog-surface-position: static;
|
||||||
--dialog-content-position: static;
|
--dialog-content-position: static;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -245,6 +245,7 @@ export class DialogEntityEditor extends LitElement {
|
|||||||
}
|
}
|
||||||
|
|
||||||
ha-dialog {
|
ha-dialog {
|
||||||
|
--dialog-content-position: static;
|
||||||
--dialog-content-padding: 0;
|
--dialog-content-padding: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -52,6 +52,7 @@ import "../../../helpers/forms/ha-input_select-form";
|
|||||||
import "../../../helpers/forms/ha-input_text-form";
|
import "../../../helpers/forms/ha-input_text-form";
|
||||||
import "../../entity-registry-basic-editor";
|
import "../../entity-registry-basic-editor";
|
||||||
import type { HaEntityRegistryBasicEditor } from "../../entity-registry-basic-editor";
|
import type { HaEntityRegistryBasicEditor } from "../../entity-registry-basic-editor";
|
||||||
|
import { haStyle } from "../../../../../resources/styles";
|
||||||
|
|
||||||
const HELPERS = {
|
const HELPERS = {
|
||||||
input_boolean: {
|
input_boolean: {
|
||||||
@ -219,35 +220,42 @@ export class EntityRegistrySettingsHelper extends LitElement {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static get styles(): CSSResult {
|
static get styles(): CSSResult[] {
|
||||||
return css`
|
return [
|
||||||
:host {
|
haStyle,
|
||||||
display: block;
|
css`
|
||||||
padding: 0 !important;
|
:host {
|
||||||
}
|
display: block;
|
||||||
.form {
|
padding: 0 !important;
|
||||||
padding: 20px 24px;
|
}
|
||||||
}
|
.form {
|
||||||
.buttons {
|
padding: 20px 24px;
|
||||||
display: flex;
|
margin-bottom: 53px;
|
||||||
justify-content: space-between;
|
}
|
||||||
padding: 8px;
|
.buttons {
|
||||||
margin-bottom: -20px;
|
position: absolute;
|
||||||
}
|
bottom: 0;
|
||||||
mwc-button.warning {
|
width: 100%;
|
||||||
--mdc-theme-primary: var(--error-color);
|
box-sizing: border-box;
|
||||||
}
|
border-top: 1px solid
|
||||||
.error {
|
var(--mdc-dialog-scroll-divider-color, rgba(0, 0, 0, 0.12));
|
||||||
color: var(--error-color);
|
display: flex;
|
||||||
}
|
justify-content: space-between;
|
||||||
.row {
|
padding: 8px;
|
||||||
margin-top: 8px;
|
background-color: var(--mdc-theme-surface, #fff);
|
||||||
color: var(--primary-text-color);
|
}
|
||||||
}
|
.error {
|
||||||
.secondary {
|
color: var(--error-color);
|
||||||
color: var(--secondary-text-color);
|
}
|
||||||
}
|
.row {
|
||||||
`;
|
margin-top: 8px;
|
||||||
|
color: var(--primary-text-color);
|
||||||
|
}
|
||||||
|
.secondary {
|
||||||
|
color: var(--secondary-text-color);
|
||||||
|
}
|
||||||
|
`,
|
||||||
|
];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -226,19 +226,22 @@ export class EntityRegistrySettings extends LitElement {
|
|||||||
css`
|
css`
|
||||||
:host {
|
:host {
|
||||||
display: block;
|
display: block;
|
||||||
margin-bottom: 0 !important;
|
|
||||||
padding: 0 !important;
|
|
||||||
}
|
}
|
||||||
.form {
|
.form {
|
||||||
padding: 20px 24px;
|
padding: 20px 24px;
|
||||||
|
margin-bottom: 53px;
|
||||||
}
|
}
|
||||||
.buttons {
|
.buttons {
|
||||||
|
position: absolute;
|
||||||
|
bottom: 0;
|
||||||
|
width: 100%;
|
||||||
|
box-sizing: border-box;
|
||||||
|
border-top: 1px solid
|
||||||
|
var(--mdc-dialog-scroll-divider-color, rgba(0, 0, 0, 0.12));
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: flex-end;
|
justify-content: space-between;
|
||||||
padding: 8px;
|
padding: 8px;
|
||||||
}
|
background-color: var(--mdc-theme-surface, #fff);
|
||||||
mwc-button.warning {
|
|
||||||
margin-right: auto;
|
|
||||||
}
|
}
|
||||||
ha-switch {
|
ha-switch {
|
||||||
margin-right: 16px;
|
margin-right: 16px;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user