Skip to content

Commit

Permalink
restore footer-height, override footer height with kiosk-header-heigh…
Browse files Browse the repository at this point in the history
…t for bottom padding kiosk mode fixes
  • Loading branch information
Nerwyn committed Nov 14, 2024
1 parent ce8d96b commit 568bda6
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/common/ha_fab.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* Fix add card button position */
:host {
bottom: calc(var(--header-height) / 0.6 + 16px) !important;
bottom: var(--footer-height) !important;
z-index: 3 !important;
}

Expand Down
2 changes: 1 addition & 1 deletion src/common/root.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ ha-tabs {
top: unset !important;
bottom: 0 !important;
background: var(--navbar-background) !important;
height: calc(var(--header-height) / 0.6) !important;
height: var(--footer-height) !important;
width: calc(100% - var(--mdc-drawer-width, 0px));
padding-bottom: env(safe-area-inset-bottom) !important;
margin: 0 !important;
Expand Down
3 changes: 2 additions & 1 deletion src/common/view.css
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
/* Add bottom footer padding when present */
.header:has(ha-tabs, paper-tabs) + #view {
padding-bottom: calc(
calc(var(--header-height) / 0.6) + env(safe-area-inset-bottom)
var(--kiosk-header-height, var(--footer-height)) +
env(safe-area-inset-bottom)
) !important;
}
1 change: 1 addition & 0 deletions src/material_rounded/theme.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ Material Rounded:
# Toolbar
paper-slider-height: 4px
header-height: 48px
footer-height: 80px
mdc-top-app-bar-fixed-box-shadow: none
app-header-background-color: var(--lovelace-background)
app-header-text-color: var(--primary-text-color)
Expand Down
Loading

0 comments on commit 568bda6

Please sign in to comment.