[GH-ISSUE #1695] Chat scrollbar renders through Tracker Panel (z-ordering / scrollbar-gutter) #839

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

Originally created by @aeriondyseti on GitHub (May 31, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/1695

Originally assigned to: @cha1latte on GitHub.

Summary

The chat content's vertical scrollbar renders through the Tracker Panel — the
scrollbar track and thumb paint on top of the tracker panel cards instead of being
properly clipped to the chat container or moved to its visible width.

Surfaced during the Ubuntu re-test of smoke test #1479.

Steps to reproduce

  1. Enable the Tracker Panel in Settings → Appearance.
  2. Open a Roleplay chat with enough message history to force a scrollbar.
  3. From the Roleplay HUD, click Show Tracker Panel (configure it on the same side as
    the scrollbar — typically right).
  4. Scroll the chat. Observe the right edge where the tracker panel sits.

Expected behavior

The chat scrollbar should either:

  • Render only within the visible width of the chat container (so it sits to the left of
    the tracker panel), or
  • Be visually clipped by the tracker panel's stacking context so it doesn't paint on top
    of tracker cards.

Actual behavior

The scrollbar (track and thumb) paints on top of the tracker panel cards as a thin
vertical line cutting through them.

Code reference

The tracker panel sits at position: fixed with z-30 (per AppShell.tsx tracker
panel render block, ~line 845 onward). The chat scrolling container uses native browser
overflow scrolling, and the scrollbar gutter is positioned at the chat's full layout
width — which extends beneath the fixed tracker.

Suggested fix direction

Either:

  • Apply scrollbar-gutter: stable and constrain the scroll container's right edge to
    stop at the tracker panel's leading edge, so the scrollbar renders in the visible chat
    area, or
  • Increase the tracker panel's effective stacking context (e.g. enforce it as the
    topmost child of a clipping parent) so the scrollbar is occluded.

The first option is preferable because it preserves scrollbar usability — the second
hides the scrollbar behind the tracker, which is also bad UX.

Environment

  • Marinara Engine branch: refactor @ 5ea8a10c
  • OS: Ubuntu (Wayland)
  • GPU: NVIDIA RTX 5060 Ti
  • Run mode: Tauri desktop (pnpm tauri dev)
  • WebKitGTK 2.52.3 (note: native scrollbar rendering on GTK may make this more visually
    obvious than on macOS/Windows webviews, where overlay scrollbars are more common)

Screenshot

The thin vertical pink/purple line running down the right edge of the chat area —
visible cutting through the "WORLD" tracker section and continuing through "Living room"
into the start of "PRESENT CHARACTERS" — is the chat scrollbar painting on top of the
tracker cards.

Scrollbar bleeds through tracker panel

  • Smoke test: #1479 (Ubuntu re-test)
  • Sibling layout bug filed separately: tracker panel overlays chat content when sidebars
    are open.
Originally created by @aeriondyseti on GitHub (May 31, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/1695 Originally assigned to: @cha1latte on GitHub. ## Summary The chat content's vertical scrollbar **renders through the Tracker Panel** — the scrollbar track and thumb paint on top of the tracker panel cards instead of being properly clipped to the chat container or moved to its visible width. Surfaced during the Ubuntu re-test of smoke test #1479. ## Steps to reproduce 1. Enable the Tracker Panel in Settings → Appearance. 2. Open a Roleplay chat with enough message history to force a scrollbar. 3. From the Roleplay HUD, click **Show Tracker Panel** (configure it on the same side as the scrollbar — typically right). 4. Scroll the chat. Observe the right edge where the tracker panel sits. ## Expected behavior The chat scrollbar should either: - Render only within the visible width of the chat container (so it sits to the *left* of the tracker panel), **or** - Be visually clipped by the tracker panel's stacking context so it doesn't paint on top of tracker cards. ## Actual behavior The scrollbar (track and thumb) paints **on top of** the tracker panel cards as a thin vertical line cutting through them. ## Code reference The tracker panel sits at `position: fixed` with `z-30` (per `AppShell.tsx` tracker panel render block, ~line 845 onward). The chat scrolling container uses native browser overflow scrolling, and the scrollbar gutter is positioned at the chat's full layout width — which extends beneath the fixed tracker. ## Suggested fix direction Either: - Apply `scrollbar-gutter: stable` and constrain the scroll container's `right` edge to stop at the tracker panel's leading edge, so the scrollbar renders in the visible chat area, or - Increase the tracker panel's effective stacking context (e.g. enforce it as the topmost child of a clipping parent) so the scrollbar is occluded. The first option is preferable because it preserves scrollbar usability — the second hides the scrollbar behind the tracker, which is also bad UX. ## Environment - Marinara Engine branch: `refactor` @ `5ea8a10c` - OS: Ubuntu (Wayland) - GPU: NVIDIA RTX 5060 Ti - Run mode: Tauri desktop (`pnpm tauri dev`) - WebKitGTK 2.52.3 (note: native scrollbar rendering on GTK may make this more visually obvious than on macOS/Windows webviews, where overlay scrollbars are more common) ## Screenshot The thin vertical pink/purple line running down the right edge of the chat area — visible cutting through the "WORLD" tracker section and continuing through "Living room" into the start of "PRESENT CHARACTERS" — is the chat scrollbar painting on top of the tracker cards. ![Scrollbar bleeds through tracker panel](https://raw.githubusercontent.com/aeriondyseti/Marinara-Engine/evidence/smoke-1479-ubuntu/pr-evidence/smoke-1479-ubuntu/scrollbar-through-tracker-panel.png) ## Related - Smoke test: #1479 (Ubuntu re-test) - Sibling layout bug filed separately: tracker panel overlays chat content when sidebars are open.
bsakaguchi 2026-10-21 05:21:41 +07:00
Author
Owner

@cha1latte commented on GitHub (May 31, 2026):

Fixed in #1739

<!-- gh-comment-id:4587867581 --> @cha1latte commented on GitHub (May 31, 2026): Fixed in #1739
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#839
No description provided.