[PR #1739] [MERGED] Fix tracker panel chat scrollbar overlap #5250

Closed
opened 2026-10-22 04:14:35 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/1739
Author: @cha1latte
Created: 5/31/2026
Status: ✅ Merged
Merged: 5/31/2026
Merged by: @cha1latte

Base: refactor ← Head: fix/issue-1695-tracker-scrollbar


📝 Commits (1)

  • 54e1ada Fix tracker panel chat scrollbar overlap

📊 Changes

2 files changed (+17 additions, -1 deletions)

View changed files

📝 src/app/shell/AppShell.tsx (+10 -0)
📝 src/features/modes/roleplay/components/ChatRoleplaySurface.tsx (+7 -1)

📄 Description

Linked issue

Closes #1695

Why this change

  • The fixed tracker panel can sit over the roleplay chat's native scrollbar gutter. The existing chat avoidance padding only moved foreground content partway away from the tracker, so the scroll container itself could still extend under the panel and paint the scrollbar through tracker cards.

What changed

  • Added a full-width tracker scroll avoidance value in AppShell that matches the tracker panel width plus HUD gap.
  • Applied that full scroll avoidance only to the roleplay transcript scroll shell, leaving the existing narrower foreground/input avoidance behavior unchanged.

Refactor impact

Primary owner:

  • App shell / roleplay mode UI.

Impact areas reviewed:

  • src/app/shell/AppShell.tsx
  • src/features/modes/roleplay/components/ChatRoleplaySurface.tsx

Boundary notes:

  • Client-only layout fix. No engine, shared API, Rust, storage, remote-runtime, dependency, schema, or prompt pipeline changes.

Pressure points touched:

  • AppShell tracker-panel CSS variables.
  • Roleplay transcript scroll shell.

Validation

  • Matching validation command passes locally (for example pnpm typecheck, pnpm build, pnpm check:architecture, pnpm check:docs, or full pnpm check when warranted)
  • pnpm check passes locally before PR push/handoff, including the unused-code check
  • pnpm typecheck passes locally
  • pnpm build passes locally
  • pnpm check:architecture passes locally
  • pnpm check:docs passes locally
  • cargo check --manifest-path src-tauri/Cargo.toml --workspace passes locally
  • Rust clippy/tests were run for Rust behavior changes
  • Browser or Tauri app manual verification completed
  • Browser screenshot/recording evidence added when UI/browser state is the claim
  • Remote runtime smoke checked when relevant

Manual verification notes

  • Codex ran pnpm typecheck.
  • Codex ran full pnpm check after rebasing onto current upstream/refactor; it passed line endings, architecture, frontend typecheck, Rust cargo check, docs, and unused-code checks.
  • Codex ran node scratch/prove-1695-scrollbar-geometry.mjs against the local Vite app. The proof reproduced the old geometry with the chat scroll edge overlapping the tracker by 122px, then verified the fixed geometry with the chat scroll edge stopping 16px before the tracker.
  • Full desktop/Tauri roleplay visual verification is still pending. In this web-shell, creating the roleplay repro chat is blocked by the app's "Remote Runtime required" setup state, so this PR is intentionally opened as a draft.

Docs and release impact

  • No docs changes needed
  • Updated README.md
  • Updated CONTRIBUTING.md
  • Updated docs/developer/
  • Updated repo skills or AGENTS.md
  • Confirmed this PR does not restore old staging/package-workspace/release claims

UI evidence

Summary by CodeRabbit

  • Bug Fixes
    • Improved layout spacing to prevent content from being obscured by the tracker panel, with optimized adjustments for both mobile and desktop views.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Pasta-Devs/Marinara-Engine/pull/1739 **Author:** [@cha1latte](https://github.com/cha1latte) **Created:** 5/31/2026 **Status:** ✅ Merged **Merged:** 5/31/2026 **Merged by:** [@cha1latte](https://github.com/cha1latte) **Base:** `refactor` ← **Head:** `fix/issue-1695-tracker-scrollbar` --- ### 📝 Commits (1) - [`54e1ada`](https://github.com/Pasta-Devs/Marinara-Engine/commit/54e1ada75bfaf9bff78c4471d82d0d2ebf7dd619) Fix tracker panel chat scrollbar overlap ### 📊 Changes **2 files changed** (+17 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `src/app/shell/AppShell.tsx` (+10 -0) 📝 `src/features/modes/roleplay/components/ChatRoleplaySurface.tsx` (+7 -1) </details> ### 📄 Description <!-- Target branch: `refactor`. Change the base to `refactor` before submitting unless a maintainer explicitly asked for another base. --> <!-- Keep all checkboxes unchecked until a human has actually verified them. --> ## Linked issue Closes #1695 ## Why this change - The fixed tracker panel can sit over the roleplay chat's native scrollbar gutter. The existing chat avoidance padding only moved foreground content partway away from the tracker, so the scroll container itself could still extend under the panel and paint the scrollbar through tracker cards. ## What changed - Added a full-width tracker scroll avoidance value in `AppShell` that matches the tracker panel width plus HUD gap. - Applied that full scroll avoidance only to the roleplay transcript scroll shell, leaving the existing narrower foreground/input avoidance behavior unchanged. ## Refactor impact Primary owner: - App shell / roleplay mode UI. Impact areas reviewed: - `src/app/shell/AppShell.tsx` - `src/features/modes/roleplay/components/ChatRoleplaySurface.tsx` Boundary notes: - Client-only layout fix. No engine, shared API, Rust, storage, remote-runtime, dependency, schema, or prompt pipeline changes. Pressure points touched: - `AppShell` tracker-panel CSS variables. - Roleplay transcript scroll shell. ## Validation - [ ] Matching validation command passes locally (for example `pnpm typecheck`, `pnpm build`, `pnpm check:architecture`, `pnpm check:docs`, or full `pnpm check` when warranted) - [ ] `pnpm check` passes locally before PR push/handoff, including the unused-code check - [ ] `pnpm typecheck` passes locally - [ ] `pnpm build` passes locally - [ ] `pnpm check:architecture` passes locally - [ ] `pnpm check:docs` passes locally - [ ] `cargo check --manifest-path src-tauri/Cargo.toml --workspace` passes locally - [ ] Rust clippy/tests were run for Rust behavior changes - [ ] Browser or Tauri app manual verification completed - [ ] Browser screenshot/recording evidence added when UI/browser state is the claim - [ ] Remote runtime smoke checked when relevant ### Manual verification notes - Codex ran `pnpm typecheck`. - Codex ran full `pnpm check` after rebasing onto current `upstream/refactor`; it passed line endings, architecture, frontend typecheck, Rust cargo check, docs, and unused-code checks. - Codex ran `node scratch/prove-1695-scrollbar-geometry.mjs` against the local Vite app. The proof reproduced the old geometry with the chat scroll edge overlapping the tracker by 122px, then verified the fixed geometry with the chat scroll edge stopping 16px before the tracker. - Full desktop/Tauri roleplay visual verification is still pending. In this web-shell, creating the roleplay repro chat is blocked by the app's "Remote Runtime required" setup state, so this PR is intentionally opened as a draft. ## Docs and release impact - [ ] No docs changes needed - [ ] Updated `README.md` - [ ] Updated `CONTRIBUTING.md` - [ ] Updated `docs/developer/` - [ ] Updated repo skills or `AGENTS.md` - [ ] Confirmed this PR does not restore old staging/package-workspace/release claims ## UI evidence - Geometry proof gist: https://gist.github.com/cha1latte/0f07f9296cea4a2dcf876321aa1266f6 - Local screenshot artifacts from the proof run: `scratch/issue-1695-before.png`, `scratch/issue-1695-after.png` <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Bug Fixes** * Improved layout spacing to prevent content from being obscured by the tracker panel, with optimized adjustments for both mobile and desktop views. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-22 04:14:35 +07:00
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#5250
No description provided.