mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-08 13:00:13 +02:00
fix layout shift on grid carousel page change
This commit is contained in:
@@ -36,12 +36,16 @@
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.grid-carousel-viewport {
|
||||
width: 100%;
|
||||
min-height: 0;
|
||||
}
|
||||
|
||||
.grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(var(--cards-to-show, 2), minmax(0, 1fr));
|
||||
gap: var(--theme-spacing-md);
|
||||
contain: layout paint;
|
||||
content-visibility: auto;
|
||||
overflow: hidden;
|
||||
will-change: transform;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user