fix(ui): Fix book scroll judder (#309)

Co-authored-by: brios <127139797+balazs-szucs@users.noreply.github.com>
This commit is contained in:
Alex
2026-04-22 17:26:58 -04:00
committed by Zach Yale
co-authored by brios
parent 55a6343f65
commit 351074fcb6
@@ -378,20 +378,25 @@
.grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(1px, 1fr));
gap: 1.3rem;
column-gap: 21px;
align-items: start;
width: 100%;
// Mobile: fixed 2 or 3 columns based on phone width
@media (width <= 767px) {
gap: 0.5rem;
column-gap: 8px;
padding: 0 0.5rem;
}
}
.virtual-scroller-item {
position: relative;
margin-bottom: 21px; // Whole px to avoid parseInt truncation in ngx-virtual-scroller
transition: width 0.2s ease, height 0.2s ease;
@media (width <= 767px) {
margin-bottom: 0.5rem;
}
}
// No books state