Skip to content

Commit 1c3de13

Browse files
committed
Add
1 parent a08bee4 commit 1c3de13

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

src/panels/config/dashboard/ha-config-dashboard.ts

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -386,12 +386,21 @@ class HaConfigDashboard extends SubscribeMixin(LitElement) {
386386
return [
387387
haStyle,
388388
css`
389-
ha-card:last-child {
390-
margin-bottom: var(--safe-area-inset-bottom);
389+
:host {
390+
display: block;
391+
padding-bottom: var(--safe-area-inset-bottom, 0px);
392+
padding-right: var(--safe-area-inset-right, 0px);
391393
}
394+
@media (max-width: 600px) {
395+
:host {
396+
padding-left: var(--safe-area-inset-left, 0px);
397+
}
398+
}
399+
392400
:host(:not([narrow])) ha-card:last-child {
393-
margin-bottom: max(24px, var(--safe-area-inset-bottom));
401+
margin-bottom: calc(24px + var(--safe-area-inset-bottom));
394402
}
403+
395404
ha-config-section {
396405
margin: auto;
397406
margin-top: -32px;

0 commit comments

Comments
 (0)