Fix width of create section button (#20015)

This commit is contained in:
Paul Bottein 2024-03-07 15:47:10 +01:00 committed by GitHub
parent 52c8554d89
commit 3b885dd01f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -247,13 +247,16 @@ export class SectionsView extends LitElement implements LovelaceViewElement {
text-align: center;
}
.section {
.container > * {
position: relative;
border-radius: var(--ha-card-border-radius, 12px);
max-width: var(--grid-section-max-width);
width: 100%;
}
.section {
border-radius: var(--ha-card-border-radius, 12px);
}
.container {
--max-count: min(var(--section-count), var(--grid-max-section-count));
--max-width: min(
@ -318,9 +321,9 @@ export class SectionsView extends LitElement implements LovelaceViewElement {
border-radius: var(--ha-card-border-radius, 12px);
border: 2px dashed var(--primary-color);
order: 1;
height: 66px;
height: calc(66px + (8px + 2px) * 2);
padding: 8px;
box-sizing: content-box;
box-sizing: border-box;
}
.create:focus {