mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-24 09:46:36 +00:00
Revert "Fix background and padding on dashboard views"
This reverts commit 3d200da438983b02af7ebf1e248b534c8036f92a.
This commit is contained in:
parent
3d200da438
commit
de00842f22
@ -1049,6 +1049,13 @@ class HUIRoot extends LitElement {
|
||||
#view {
|
||||
margin-top: calc(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);
|
||||
display: flex;
|
||||
}
|
||||
@ -1072,15 +1079,11 @@ class HUIRoot extends LitElement {
|
||||
*
|
||||
* https://github.com/home-assistant/home-assistant-polymer/pull/3806
|
||||
*/
|
||||
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%;
|
||||
flex: 1 1 100%;
|
||||
height: 100%;
|
||||
max-width: 100%;
|
||||
padding-bottom: env(safe-area-inset-bottom);
|
||||
display: block;
|
||||
}
|
||||
.hide-tab {
|
||||
display: none;
|
||||
|
@ -298,8 +298,8 @@ export class MasonryView extends LitElement implements LovelaceViewElement {
|
||||
:host {
|
||||
display: block;
|
||||
padding-top: 4px;
|
||||
height: 100%;
|
||||
box-sizing: border-box;
|
||||
padding-bottom: env(safe-area-inset-bottom);
|
||||
}
|
||||
|
||||
.badges {
|
||||
|
@ -196,8 +196,8 @@ export class SideBarView extends LitElement implements LovelaceViewElement {
|
||||
:host {
|
||||
display: block;
|
||||
padding-top: 4px;
|
||||
height: 100%;
|
||||
box-sizing: border-box;
|
||||
padding-bottom: env(safe-area-inset-bottom);
|
||||
}
|
||||
|
||||
.container {
|
||||
|
Loading…
x
Reference in New Issue
Block a user