[GH-ISSUE #4078] [Issue]: "Load more" button is not pinned to the panel bottom — scrolls with the list (Characters/Personas/Lorebooks) #2204

Closed
opened 2026-10-21 05:46:14 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @SpicyMarinara on GitHub (Jul 25, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/4078

Originally assigned to: @SpicyMarinara on GitHub.

Summary

When a library panel has more than one page of entries (50+ Characters, Personas, Lorebooks, etc.), the "Load more (N loaded)" button is rendered inline at the end of the current list instead of being pinned to the bottom of the panel. As a result it floats up and down with the scroll position instead of staying anchored, making it difficult to find/reach when scrolling a long list.

The button should stay pinned to the bottom of the panel viewport at all times, on every panel and every screen width.

Steps to reproduce

  1. Have 100+ characters (or personas, or lorebooks) so pagination kicks in.
  2. Open the Characters / Personas / Lorebooks panel.
  3. Scroll through the list on a narrow panel width (e.g. mobile, or a narrow sidebar).

Expected: the "Load more" bar is docked to the bottom edge of the panel and stays there while scrolling.
Actual: the "Load more" bar sits in the normal document flow and scrolls together with the list, drifting mid-screen (see screenshot).

Root cause (technical)

The load-more affordance is duplicated per panel and each does something different:

  • CharactersPanel.tsx:1460-1472 — wrapped in a container with md:sticky md:bottom-0 md:z-20. It is only sticky at the md breakpoint and above; on narrower widths (the width in the screenshot) it falls back to normal flow and scrolls with the list.
  • PersonasPanel.tsx:1225-1235 — a bare inline <button> with no sticky/dock wrapper at all, so it always scrolls with content.
  • LorebooksPanel.tsx:1087-1095 — same as Personas: bare inline button, never pinned.

All three render the same ui.panels.characterspanel.loadMoreValue1Loaded label, so the affordance is conceptually shared but its layout is not.

Suggested fix

  • Pin the load-more bar to the bottom of the scroll container on all breakpoints (not just md:), and apply it consistently across Characters, Personas, Lorebooks (and any other paginated library panel).
  • Consider extracting a single shared LoadMoreBar component so these panels can't drift out of sync again.
  • #3286 — Character list Load More overlaps entries (bug, in-pr)
  • #3383 — Character tab "Load more" bar overlaps character cards on mobile (fixed-in-staging)

Those addressed overlap/tap-blocking; this is the follow-on positioning gap where the bar isn't docked to the bottom below md, and Personas/Lorebooks were never made sticky at all.

Manual verification checklist (for the implementer — leave unchecked)

  • Load more stays docked at the bottom of the Characters panel while scrolling, at narrow and wide widths
  • Same for Personas panel
  • Same for Lorebooks panel
  • Bar does not overlap or hide the last row's controls
Originally created by @SpicyMarinara on GitHub (Jul 25, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/4078 Originally assigned to: @SpicyMarinara on GitHub. ## Summary When a library panel has more than one page of entries (50+ Characters, Personas, Lorebooks, etc.), the **"Load more (N loaded)"** button is rendered inline at the end of the current list instead of being pinned to the bottom of the panel. As a result it floats up and down with the scroll position instead of staying anchored, making it difficult to find/reach when scrolling a long list. The button should stay **pinned to the bottom of the panel viewport at all times**, on every panel and every screen width. ## Steps to reproduce 1. Have 100+ characters (or personas, or lorebooks) so pagination kicks in. 2. Open the Characters / Personas / Lorebooks panel. 3. Scroll through the list on a narrow panel width (e.g. mobile, or a narrow sidebar). **Expected:** the "Load more" bar is docked to the bottom edge of the panel and stays there while scrolling. **Actual:** the "Load more" bar sits in the normal document flow and scrolls together with the list, drifting mid-screen (see screenshot). ## Root cause (technical) The load-more affordance is duplicated per panel and each does something different: - [`CharactersPanel.tsx:1460-1472`](packages/client/src/components/panels/CharactersPanel.tsx#L1460-L1472) — wrapped in a container with `md:sticky md:bottom-0 md:z-20`. It is only sticky at the `md` breakpoint and above; on narrower widths (the width in the screenshot) it falls back to normal flow and scrolls with the list. - [`PersonasPanel.tsx:1225-1235`](packages/client/src/components/panels/PersonasPanel.tsx#L1225-L1235) — a bare inline `<button>` with no sticky/dock wrapper at all, so it always scrolls with content. - [`LorebooksPanel.tsx:1087-1095`](packages/client/src/components/panels/LorebooksPanel.tsx#L1087-L1095) — same as Personas: bare inline button, never pinned. All three render the same `ui.panels.characterspanel.loadMoreValue1Loaded` label, so the affordance is conceptually shared but its layout is not. ## Suggested fix - Pin the load-more bar to the bottom of the scroll container on **all** breakpoints (not just `md:`), and apply it consistently across Characters, Personas, Lorebooks (and any other paginated library panel). - Consider extracting a single shared `LoadMoreBar` component so these panels can't drift out of sync again. ## Related (already closed) - #3286 — Character list Load More overlaps entries (bug, in-pr) - #3383 — Character tab "Load more" bar overlaps character cards on mobile (fixed-in-staging) Those addressed overlap/tap-blocking; this is the follow-on positioning gap where the bar isn't docked to the bottom below `md`, and Personas/Lorebooks were never made sticky at all. ## Manual verification checklist (for the implementer — leave unchecked) - [ ] Load more stays docked at the bottom of the Characters panel while scrolling, at narrow and wide widths - [ ] Same for Personas panel - [ ] Same for Lorebooks panel - [ ] Bar does not overlap or hide the last row's controls
bsakaguchi 2026-10-21 05:46:14 +07:00
Author
Owner

@SpicyMarinara commented on GitHub (Jul 25, 2026):

🔧 Ownership note: @SpicyMarinara is handling this in draft PR #4077 as part of the current open-issue sweep.

<!-- gh-comment-id:5077447934 --> @SpicyMarinara commented on GitHub (Jul 25, 2026): 🔧 Ownership note: @SpicyMarinara is handling this in draft PR #4077 as part of the current open-issue sweep.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#2204
No description provided.