mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-28 03:36:44 +00:00
Fix visual differences between regular and energy dashboards (#20654)
* Fix visual differences between regular and energy dashboards * Order padding properties the same way between energy and lovelace * Change from code review
This commit is contained in:
parent
bcb72d83b8
commit
334c245b65
@ -112,14 +112,14 @@ class PanelEnergy extends LitElement {
|
||||
</hui-energy-period-selector>
|
||||
</div>
|
||||
</div>
|
||||
<hui-view
|
||||
id="view"
|
||||
.hass=${this.hass}
|
||||
.narrow=${this.narrow}
|
||||
.lovelace=${this._lovelace}
|
||||
.index=${this._viewIndex}
|
||||
@reload-energy-panel=${this._reloadView}
|
||||
></hui-view>
|
||||
<div id="view" @reload-energy-panel=${this._reloadView}>
|
||||
<hui-view
|
||||
.hass=${this.hass}
|
||||
.narrow=${this.narrow}
|
||||
.lovelace=${this._lovelace}
|
||||
.index=${this._viewIndex}
|
||||
></hui-view>
|
||||
</div>
|
||||
`;
|
||||
}
|
||||
|
||||
@ -401,12 +401,10 @@ class PanelEnergy extends LitElement {
|
||||
min-height: 100vh;
|
||||
box-sizing: border-box;
|
||||
padding-left: env(safe-area-inset-left);
|
||||
padding-inline-start: env(safe-area-inset-left);
|
||||
padding-right: env(safe-area-inset-right);
|
||||
padding-inline-start: env(safe-area-inset-left);
|
||||
padding-inline-end: env(safe-area-inset-right);
|
||||
padding-bottom: env(safe-area-inset-bottom);
|
||||
}
|
||||
hui-view {
|
||||
background: var(
|
||||
--lovelace-background,
|
||||
var(--primary-background-color)
|
||||
|
@ -1013,8 +1013,6 @@ class HUIRoot extends LitElement {
|
||||
padding-inline-start: env(safe-area-inset-left);
|
||||
padding-inline-end: env(safe-area-inset-right);
|
||||
padding-bottom: env(safe-area-inset-bottom);
|
||||
}
|
||||
hui-view {
|
||||
background: var(
|
||||
--lovelace-background,
|
||||
var(--primary-background-color)
|
||||
|
Loading…
x
Reference in New Issue
Block a user