mirror of
https://github.com/rommapp/romm.git
synced 2026-11-29 01:58:41 +01:00
* fix(ui): stop the search gallery shifting against the other tabs With classic scrollbars, the document-scrolled tabs (Home, Platforms, Collections) lose the scrollbar's width to the document scrollbar, but the gallery handed its own scrollbar's width back to the top bar and the content. Search therefore laid out 10px wider on the right, moving the nav pill, user menu, divider and toolbar on every tab switch. Drop that compensation so the gallery's scrollbar takes the same space a document scrollbar does, and have the document-scrolled tab pages always reserve the gutter so a short page matches a long one and the gallery. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NH5s4gEUfseKAL1fjKAHqu * refactor(ui): scroll the gallery with the page like the other tabs GalleryShell scrolled inside its own full-viewport panel, unlike Home, Platforms and Collections, which scroll the document. The two layouts needed scrollbar-width bookkeeping to line up and still drifted apart. RVirtualScroller gains an opt-in `pageScroll` mode that windows its rows on the document's scroll, takes its full height in the page flow, and lets wide list rows widen it so sticky chrome follows a sideways scroll. GalleryShell uses it, pins its toolbar on the page scroll, and fixes the AlphaStrip, back-to-top button and floating dock to the viewport. The body overflow lock, the published scrollbar width and the phone bottom spacer go away; the layout's own bottom padding clears the tab bar. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NH5s4gEUfseKAL1fjKAHqu * test(ui): cover the page offset in RVirtualScroller's pageScroll mode Places content above the list and grows it, checking that the rendered rows and the scrollToIndex target follow the list's page offset. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NH5s4gEUfseKAL1fjKAHqu * fix(ui): count only the visible part of a virtual list that starts mid-viewport viewportRange added the full viewport height to the clamped top, so a list starting partway down the screen (a gallery under its page header) counted rows still below the fold as visible, and the gallery fetched and rendered them. Measure the bottom from the real viewport edge, and report an empty range when the list lies wholly outside it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NH5s4gEUfseKAL1fjKAHqu * docs(ui): shorten the scrollRestoration header comment Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NH5s4gEUfseKAL1fjKAHqu --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>