mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-19 07:16:39 +00:00
Don't make dialog boxes fullscreen on mobile (#12928)
This commit is contained in:
parent
6a3a0db338
commit
5160a1f55c
@ -8,7 +8,6 @@ import "../../components/ha-dialog";
|
|||||||
import "../../components/ha-svg-icon";
|
import "../../components/ha-svg-icon";
|
||||||
import "../../components/ha-switch";
|
import "../../components/ha-switch";
|
||||||
import { HaTextField } from "../../components/ha-textfield";
|
import { HaTextField } from "../../components/ha-textfield";
|
||||||
import { haStyleDialog } from "../../resources/styles";
|
|
||||||
import { HomeAssistant } from "../../types";
|
import { HomeAssistant } from "../../types";
|
||||||
import { DialogBoxParams } from "./show-dialog-box";
|
import { DialogBoxParams } from "./show-dialog-box";
|
||||||
|
|
||||||
@ -135,9 +134,7 @@ class DialogBox extends LitElement {
|
|||||||
}
|
}
|
||||||
|
|
||||||
static get styles(): CSSResultGroup {
|
static get styles(): CSSResultGroup {
|
||||||
return [
|
return css`
|
||||||
haStyleDialog,
|
|
||||||
css`
|
|
||||||
:host([inert]) {
|
:host([inert]) {
|
||||||
pointer-events: initial !important;
|
pointer-events: initial !important;
|
||||||
cursor: initial !important;
|
cursor: initial !important;
|
||||||
@ -158,11 +155,13 @@ class DialogBox extends LitElement {
|
|||||||
color: var(--secondary-text-color);
|
color: var(--secondary-text-color);
|
||||||
}
|
}
|
||||||
ha-dialog {
|
ha-dialog {
|
||||||
|
--mdc-dialog-heading-ink-color: var(--primary-text-color);
|
||||||
|
--mdc-dialog-content-ink-color: var(--primary-text-color);
|
||||||
|
--justify-action-buttons: space-between;
|
||||||
/* Place above other dialogs */
|
/* Place above other dialogs */
|
||||||
--dialog-z-index: 104;
|
--dialog-z-index: 104;
|
||||||
}
|
}
|
||||||
`,
|
`;
|
||||||
];
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user