[PR #1317] [MERGED] Fix refactor roleplay panel avatar clipping #5035

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

📋 Pull Request Information

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

Base: refactor ← Head: fix/issue-1272-roleplay-avatar-height-refactor


📝 Commits (1)

  • dabd112 Fix refactor roleplay panel avatar height

📊 Changes

3 files changed (+1 additions, -1 deletions)

View changed files

➕ pr-evidence/issue-1272-refactor/after.png (+0 -0)
➕ pr-evidence/issue-1272-refactor/before.png (+0 -0)
📝 src/features/modes/shared/chat-ui/components/ChatMessage.tsx (+1 -1)

📄 Description

Linked issue

Closes #1272

Why this change

  • Roleplay panel avatars on refactor were still height-coupled to short message text, so a short line could clip the full-body avatar panel.
  • This corrects the fix for the refactor branch after #1311 was accidentally merged to staging and reverted by #1314.

What changed

  • Adds the roleplay avatar panel height constraint to the actual panel column in the refactor chat message component.
  • Adds GitHub-visible before/after UI evidence for the layout proof.

Refactor impact

Primary owner:

  • roleplay mode / shared mode UI

Impact areas reviewed:

  • src/features/modes/shared/chat-ui/components/ChatMessage.tsx
  • Roleplay panel avatar markup and Tailwind-generated layout CSS

Boundary notes:

  • Client-only layout change; no engine, storage, shared API, Rust, or remote runtime boundary changes.

Pressure points touched:

  • shared mode UI ChatMessage

Validation

  • pnpm check passes locally
  • 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
  • Playwright, screenshot, or recording evidence added for UI changes
  • Remote runtime smoke checked when relevant

Manual verification notes

  • Codex ran node scratch/issue-1272-refactor-layout-proof.mjs against the local refactor Vite app CSS. Negative control without the fixed panel-column min-height clipped to 48px; fixed panel column rendered at 317.890625px.
  • Codex ran pnpm check, including architecture, frontend typecheck, Rust cargo check, and docs checks.
  • The refactor app requires Tauri IPC for real storage data, so this browser proof isolates the changed layout path against the real generated CSS rather than seeding app chats through Vite alone.

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

Before / negative control:

Before clipped panel avatar

After / fixed panel avatar:

After full-height panel avatar


🔄 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/1317 **Author:** [@cha1latte](https://github.com/cha1latte) **Created:** 5/26/2026 **Status:** ✅ Merged **Merged:** 5/26/2026 **Merged by:** [@cha1latte](https://github.com/cha1latte) **Base:** `refactor` ← **Head:** `fix/issue-1272-roleplay-avatar-height-refactor` --- ### 📝 Commits (1) - [`dabd112`](https://github.com/Pasta-Devs/Marinara-Engine/commit/dabd11250dbde146e385969bae882b8782242e4f) Fix refactor roleplay panel avatar height ### 📊 Changes **3 files changed** (+1 additions, -1 deletions) <details> <summary>View changed files</summary> ➕ `pr-evidence/issue-1272-refactor/after.png` (+0 -0) ➕ `pr-evidence/issue-1272-refactor/before.png` (+0 -0) 📝 `src/features/modes/shared/chat-ui/components/ChatMessage.tsx` (+1 -1) </details> ### 📄 Description ## Linked issue Closes #1272 ## Why this change - Roleplay panel avatars on `refactor` were still height-coupled to short message text, so a short line could clip the full-body avatar panel. - This corrects the fix for the `refactor` branch after #1311 was accidentally merged to `staging` and reverted by #1314. ## What changed - Adds the roleplay avatar panel height constraint to the actual panel column in the refactor chat message component. - Adds GitHub-visible before/after UI evidence for the layout proof. ## Refactor impact Primary owner: - roleplay mode / shared mode UI Impact areas reviewed: - `src/features/modes/shared/chat-ui/components/ChatMessage.tsx` - Roleplay panel avatar markup and Tailwind-generated layout CSS Boundary notes: - Client-only layout change; no engine, storage, shared API, Rust, or remote runtime boundary changes. Pressure points touched: - shared mode UI `ChatMessage` ## Validation - [ ] `pnpm check` passes locally - [ ] `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 - [ ] Playwright, screenshot, or recording evidence added for UI changes - [ ] Remote runtime smoke checked when relevant ### Manual verification notes - Codex ran `node scratch/issue-1272-refactor-layout-proof.mjs` against the local refactor Vite app CSS. Negative control without the fixed panel-column min-height clipped to `48px`; fixed panel column rendered at `317.890625px`. - Codex ran `pnpm check`, including architecture, frontend typecheck, Rust `cargo check`, and docs checks. - The refactor app requires Tauri IPC for real storage data, so this browser proof isolates the changed layout path against the real generated CSS rather than seeding app chats through Vite alone. ## 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 Before / negative control: ![Before clipped panel avatar](https://raw.githubusercontent.com/cha1latte/Marinara-Engine/fix/issue-1272-roleplay-avatar-height-refactor/pr-evidence/issue-1272-refactor/before.png) After / fixed panel avatar: ![After full-height panel avatar](https://raw.githubusercontent.com/cha1latte/Marinara-Engine/fix/issue-1272-roleplay-avatar-height-refactor/pr-evidence/issue-1272-refactor/after.png) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-22 04:12:39 +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#5035
No description provided.