mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-28 11:46:42 +00:00
Fix background and padding on dashboard views
This commit is contained in:
parent
0364c5e493
commit
3d200da438
@ -1049,13 +1049,6 @@ class HUIRoot extends LitElement {
|
|||||||
#view {
|
#view {
|
||||||
margin-top: calc(var(--header-height) + env(safe-area-inset-top));
|
margin-top: calc(var(--header-height) + env(safe-area-inset-top));
|
||||||
height: calc(100vh - var(--header-height) - env(safe-area-inset-top));
|
height: calc(100vh - var(--header-height) - env(safe-area-inset-top));
|
||||||
padding-left: env(safe-area-inset-left);
|
|
||||||
padding-right: env(safe-area-inset-right);
|
|
||||||
background: var(
|
|
||||||
--lovelace-background,
|
|
||||||
var(--primary-background-color)
|
|
||||||
);
|
|
||||||
overflow: auto;
|
|
||||||
transform: translateZ(0);
|
transform: translateZ(0);
|
||||||
display: flex;
|
display: flex;
|
||||||
}
|
}
|
||||||
@ -1079,11 +1072,15 @@ class HUIRoot extends LitElement {
|
|||||||
*
|
*
|
||||||
* https://github.com/home-assistant/home-assistant-polymer/pull/3806
|
* https://github.com/home-assistant/home-assistant-polymer/pull/3806
|
||||||
*/
|
*/
|
||||||
flex: 1 1 100%;
|
padding-left: env(safe-area-inset-left);
|
||||||
|
padding-right: env(safe-area-inset-right);
|
||||||
|
background: var(
|
||||||
|
--lovelace-background,
|
||||||
|
var(--primary-background-color)
|
||||||
|
);
|
||||||
|
overflow: auto;
|
||||||
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
max-width: 100%;
|
|
||||||
padding-bottom: env(safe-area-inset-bottom);
|
|
||||||
display: block;
|
|
||||||
}
|
}
|
||||||
.hide-tab {
|
.hide-tab {
|
||||||
display: none;
|
display: none;
|
||||||
|
@ -298,8 +298,8 @@ export class MasonryView extends LitElement implements LovelaceViewElement {
|
|||||||
:host {
|
:host {
|
||||||
display: block;
|
display: block;
|
||||||
padding-top: 4px;
|
padding-top: 4px;
|
||||||
height: 100%;
|
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
|
padding-bottom: env(safe-area-inset-bottom);
|
||||||
}
|
}
|
||||||
|
|
||||||
.badges {
|
.badges {
|
||||||
|
@ -196,8 +196,8 @@ export class SideBarView extends LitElement implements LovelaceViewElement {
|
|||||||
:host {
|
:host {
|
||||||
display: block;
|
display: block;
|
||||||
padding-top: 4px;
|
padding-top: 4px;
|
||||||
height: 100%;
|
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
|
padding-bottom: env(safe-area-inset-bottom);
|
||||||
}
|
}
|
||||||
|
|
||||||
.container {
|
.container {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user