mirror of
https://github.com/home-assistant/frontend.git
synced 2025-05-03 17:48:43 +00:00
Fix dialog placement and overflow (#13527)
This commit is contained in:
parent
c116ad67ed
commit
be4dcbe405
@ -80,6 +80,7 @@ export class HaDialog extends DialogBase {
|
|||||||
.mdc-dialog .mdc-dialog__surface {
|
.mdc-dialog .mdc-dialog__surface {
|
||||||
position: var(--dialog-surface-position, relative);
|
position: var(--dialog-surface-position, relative);
|
||||||
top: var(--dialog-surface-top);
|
top: var(--dialog-surface-top);
|
||||||
|
margin-top: var(--dialog-surface-margin-top);
|
||||||
min-height: var(--mdc-dialog-min-height, auto);
|
min-height: var(--mdc-dialog-min-height, auto);
|
||||||
border-radius: var(--ha-dialog-border-radius, 28px);
|
border-radius: var(--ha-dialog-border-radius, 28px);
|
||||||
}
|
}
|
||||||
|
@ -269,6 +269,7 @@ export class MoreInfoDialog extends LitElement {
|
|||||||
ha-dialog {
|
ha-dialog {
|
||||||
--dialog-surface-position: static;
|
--dialog-surface-position: static;
|
||||||
--dialog-content-position: static;
|
--dialog-content-position: static;
|
||||||
|
--vertial-align-dialog: flex-start;
|
||||||
}
|
}
|
||||||
|
|
||||||
ha-header-bar {
|
ha-header-bar {
|
||||||
@ -301,8 +302,7 @@ export class MoreInfoDialog extends LitElement {
|
|||||||
ha-dialog {
|
ha-dialog {
|
||||||
--mdc-dialog-min-width: 560px;
|
--mdc-dialog-min-width: 560px;
|
||||||
--mdc-dialog-max-width: 560px;
|
--mdc-dialog-max-width: 560px;
|
||||||
--dialog-surface-position: fixed;
|
--dialog-surface-margin-top: 40px;
|
||||||
--dialog-surface-top: 40px;
|
|
||||||
--mdc-dialog-max-height: calc(100% - 72px);
|
--mdc-dialog-max-height: calc(100% - 72px);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1044,7 +1044,6 @@ export class EntityRegistrySettings extends SubscribeMixin(LitElement) {
|
|||||||
css`
|
css`
|
||||||
:host {
|
:host {
|
||||||
display: block;
|
display: block;
|
||||||
margin-bottom: 60px;
|
|
||||||
}
|
}
|
||||||
.container {
|
.container {
|
||||||
padding: 20px 24px;
|
padding: 20px 24px;
|
||||||
@ -1056,11 +1055,9 @@ export class EntityRegistrySettings extends SubscribeMixin(LitElement) {
|
|||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
padding-bottom: max(env(safe-area-inset-bottom), 24px);
|
padding-bottom: max(env(safe-area-inset-bottom), 24px);
|
||||||
background-color: var(--mdc-theme-surface, #fff);
|
background-color: var(--mdc-theme-surface, #fff);
|
||||||
|
|
||||||
position: absolute;
|
|
||||||
bottom: 0;
|
|
||||||
width: 100%;
|
|
||||||
border-top: 1px solid var(--divider-color);
|
border-top: 1px solid var(--divider-color);
|
||||||
|
position: sticky;
|
||||||
|
bottom: 0px;
|
||||||
}
|
}
|
||||||
ha-select {
|
ha-select {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user