From 334c245b652e9f36249eab7b9cb769e318f2e654 Mon Sep 17 00:00:00 2001 From: Adam Kapos Date: Tue, 30 Apr 2024 16:07:54 +0300 Subject: [PATCH] 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 --- src/panels/energy/ha-panel-energy.ts | 20 +++++++++----------- src/panels/lovelace/hui-root.ts | 2 -- 2 files changed, 9 insertions(+), 13 deletions(-) diff --git a/src/panels/energy/ha-panel-energy.ts b/src/panels/energy/ha-panel-energy.ts index c033f7c2f3d6..328e25cf4cd5 100644 --- a/src/panels/energy/ha-panel-energy.ts +++ b/src/panels/energy/ha-panel-energy.ts @@ -112,14 +112,14 @@ class PanelEnergy extends LitElement { - +
+ +
`; } @@ -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) diff --git a/src/panels/lovelace/hui-root.ts b/src/panels/lovelace/hui-root.ts index 6226897809a3..e95cdf1861dd 100644 --- a/src/panels/lovelace/hui-root.ts +++ b/src/panels/lovelace/hui-root.ts @@ -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)