fix(card-search): keep a single result at normal card width
LocationBasedServices/smartguide/pipeline/head This commit looks good
LocationBasedServices/smartguide/pipeline/head This commit looks good
This commit is contained in:
@@ -28,7 +28,9 @@
|
||||
.cards {
|
||||
display: grid;
|
||||
gap: 1.5rem;
|
||||
grid-template-columns: repeat(auto-fit, minmax(var(--card-min-width), 1fr));
|
||||
// auto-fill (not auto-fit) keeps empty tracks reserved, so a single result
|
||||
// stays card-width instead of stretching to fill the whole row.
|
||||
grid-template-columns: repeat(auto-fill, minmax(var(--card-min-width), 1fr));
|
||||
padding: 0 1rem;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user