Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion src/layouts/home-assistant-main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,12 @@ export class HomeAssistantMain extends LitElement {
/* remove the grey tap highlights in iOS on the fullscreen touch targets */
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
--mdc-drawer-width: calc(56px + var(--safe-area-inset-left, 0px));
--mdc-top-app-bar-width: calc(100% - var(--mdc-drawer-width));
--mdc-top-app-bar-width: calc(
100% - var(--mdc-drawer-width, 0px) - var(
--safe-area-inset-left,
0px
) - var(--safe-area-inset-right, 0px)
);
--safe-area-content-inset-left: 0px;
--safe-area-content-inset-right: var(--safe-area-inset-right);
}
Expand Down
10 changes: 9 additions & 1 deletion src/panels/developer-tools/ha-panel-developer-tools.ts
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,15 @@ class PanelDeveloperTools extends LitElement {
top: 0;
z-index: 4;
background-color: var(--app-header-background-color);
width: var(--mdc-top-app-bar-width, 100%);
width: var(
--mdc-top-app-bar-width,
calc(
100% - var(--safe-area-inset-left, 0px) - var(
--safe-area-inset-right,
0px
)
)
);
padding-top: var(--safe-area-inset-top);
padding-left: var(--safe-area-inset-left);
padding-right: var(--safe-area-inset-right);
Expand Down
5 changes: 4 additions & 1 deletion src/panels/lovelace/hui-root.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1212,7 +1212,10 @@ class HUIRoot extends LitElement {
width: var(
--mdc-top-app-bar-width,
calc(
100% - var(--safe-area-inset-left) - var(--safe-area-inset-right)
100% - var(--safe-area-inset-left, 0px) - var(
--safe-area-inset-right,
0px
)
)
);
-webkit-backdrop-filter: var(--app-header-backdrop-filter, none);
Expand Down
Loading