Skip to content

Commit

Permalink
fix: use minmax instead of 1fr
Browse files Browse the repository at this point in the history
  • Loading branch information
jeripeierSBB committed Nov 28, 2024
1 parent 2d6bcb7 commit 86da26f
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
opacity: var(--sbb-flip-card-summary-opacity);
border-radius: var(--sbb-flip-card-border-radius);
overflow: hidden;
grid-template-columns: 1fr;
grid-template-columns: minmax(0, 1fr);
grid-template-rows: auto minmax(0, 1fr);
width: 100%;
height: 100%;
Expand All @@ -26,12 +26,12 @@

:host([image-alignment='after']) & {
@include sbb.mq($from: small) {
grid-template-columns: repeat(3, 1fr);
grid-template-columns: repeat(3, minmax(0, 1fr));
grid-template-rows: 1fr;
}

@include sbb.mq($from: medium) {
grid-template-columns: repeat(2, 1fr);
grid-template-columns: repeat(2, minmax(0, 1fr));
grid-template-rows: 1fr;
}
}
Expand Down

0 comments on commit 86da26f

Please sign in to comment.