[go: up one dir, main page]

Skip to content

Commit

Permalink
Set proper header-height (maykar#48)
Browse files Browse the repository at this point in the history
* Set proper header-height

Set header-height css variable, so inner components can access this variable.

* Added smissing semicolon

Co-authored-by: Kendell R <KTibow@users.noreply.github.com>

* Update kiosk-mode.js

Co-authored-by: Kendell R <KTibow@users.noreply.github.com>
Co-authored-by: Ryan Meek <25127328+maykar@users.noreply.github.com>
  • Loading branch information
3 people authored Jan 10, 2021
1 parent 7d0a94c commit b19c83d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kiosk-mode.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ function kioskMode(lovelace, config) {
}

if (hideHeader) {
addStyle("#view{min-height:100vh !important}app-header{display:none}", huiRoot);
addStyle("#view{min-height:100vh !important;--header-height:0;}app-header{display:none}", huiRoot);
if (queryString("cache")) setCache("kmHeader", "true");
} else {
removeStyle(huiRoot);
Expand Down

0 comments on commit b19c83d

Please sign in to comment.