From 351074fcb65bae096edeba0329ca12bcbb213577 Mon Sep 17 00:00:00 2001 From: Alex <25013571+alexhb1@users.noreply.github.com> Date: Tue, 31 Mar 2026 18:30:19 +0100 Subject: [PATCH] fix(ui): Fix book scroll judder (#309) Co-authored-by: brios <127139797+balazs-szucs@users.noreply.github.com> --- .../components/book-browser/book-browser.component.scss | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/frontend/src/app/features/book/components/book-browser/book-browser.component.scss b/frontend/src/app/features/book/components/book-browser/book-browser.component.scss index 514b10db0..3df734045 100644 --- a/frontend/src/app/features/book/components/book-browser/book-browser.component.scss +++ b/frontend/src/app/features/book/components/book-browser/book-browser.component.scss @@ -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