Skip to content

Commit

Permalink
Set grid gap to 32px (#19990)
Browse files Browse the repository at this point in the history
Set grip grap to 32px
  • Loading branch information
piitaya authored and bramkragten committed Mar 6, 2024
1 parent d4a8fcb commit 33a4258
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/panels/lovelace/views/hui-sections-view.ts
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ export class SectionsView extends LitElement implements LovelaceViewElement {
.container {
/* Inputs */
--grid-gap: 20px;
--grid-gap: 32px;
--grid-max-section-count: 4;
--grid-section-min-width: 320px;
--grid-section-max-width: 500px;
Expand All @@ -271,19 +271,17 @@ export class SectionsView extends LitElement implements LovelaceViewElement {
display: grid;
grid-template-columns: repeat(
auto-fit,
minmax(var(--grid-section-min-width), 1fr)
minmax(min(var(--grid-section-min-width), 100%), 1fr)
);
grid-gap: 8px var(--grid-gap);
justify-content: center;
padding: var(--grid-gap);
padding: 8px var(--grid-gap);
box-sizing: border-box;
max-width: var(--grid-max-width);
margin: 0 auto;
}
@media (max-width: 600px) {
.container {
grid-template-columns: 1fr;
--grid-gap: 8px;
}
}
Expand Down

0 comments on commit 33a4258

Please sign in to comment.