[PR #1311] [MERGED] Fix roleplay panel avatars clipping on short messages #5029

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

📋 Pull Request Information

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

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


📝 Commits (2)

  • 5b2e538 Fix roleplay panel avatar height
  • aa97653 Add issue 1272 UI evidence

📊 Changes

5 files changed (+1 additions, -0 deletions)

View changed files

📝 packages/client/src/components/chat/ChatMessage.tsx (+1 -0)
➕ pr-evidence/issue-1272/after-long.png (+0 -0)
➕ pr-evidence/issue-1272/after-short.png (+0 -0)
➕ pr-evidence/issue-1272/before-long.png (+0 -0)
➕ pr-evidence/issue-1272/before-short.png (+0 -0)

📄 Description

Linked issue

Closes #1272

Why this change

  • Roleplay panel-style character avatars were clipped to the short message bubble height, so the full avatar only appeared once the message text was tall enough.

What changed

  • Added a panel-avatar-only minimum bubble height that matches the existing roleplay avatar panel stack height.
  • Added scoped UI evidence screenshots under pr-evidence/issue-1272/ so the before/after proof renders from GitHub.

Validation

  • pnpm check passes locally
  • Container (Docker / Podman) built and ran without issue
  • Ran the app, clicked through the changes manually
  • Checked edge cases (light + dark mode, mobile viewport, empty states, error paths)
  • Above manual verification completed (describe below)
  • Read and followed CONTRIBUTING.md

Manual verification notes

  • Codex seeded a roleplay chat with panel avatars and measured the same avatar before/after the fix with node scratch/issue-1272-roleplay-avatar-height.mjs.
  • Before fix: short message showed only 50px of a 187px panel avatar; long message showed the full 187px.
  • After fix: short and long messages both showed the full 187px avatar.
  • Edge checks: circle and rectangle roleplay avatar styles still used the compact avatar path and did not render the panel column.
  • pnpm check passed locally after rerunning with a longer timeout; the first attempt timed out at 124s, the second completed in 143s.
  • node C:\Users\celia\.codex\tools\marinara-proof-gate.mjs scratch/bugfix-verification.json passed.
  • Bunny review pass: focused diff, targets staging, proof covers the issue symptom, no schema/version/dependency/storage/prompt changes.

Docs and release impact

  • No docs changes needed
  • Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed
  • Version/release files updated (only if this PR includes a version bump)

UI evidence (if applicable)

Before, short message clips the avatar:

Before short

After, short message shows the full panel avatar:

After short

Before, long message was tall enough to show the full avatar:

Before long

After, long message still shows the full avatar:

After long

Summary by CodeRabbit

  • Style
    • Adjusted the minimum height of the roleplay message bubble layout when the roleplay avatar panel is displayed.

Review Change Stack


🔄 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/1311 **Author:** [@cha1latte](https://github.com/cha1latte) **Created:** 5/26/2026 **Status:** ✅ Merged **Merged:** 5/26/2026 **Merged by:** [@cha1latte](https://github.com/cha1latte) **Base:** `staging` ← **Head:** `fix/issue-1272-roleplay-avatar-height` --- ### 📝 Commits (2) - [`5b2e538`](https://github.com/Pasta-Devs/Marinara-Engine/commit/5b2e538c319d51f1c70413830cf49b139ae394a8) Fix roleplay panel avatar height - [`aa97653`](https://github.com/Pasta-Devs/Marinara-Engine/commit/aa97653f79e9961f6cda58c4517e1dce1222e917) Add issue 1272 UI evidence ### 📊 Changes **5 files changed** (+1 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `packages/client/src/components/chat/ChatMessage.tsx` (+1 -0) ➕ `pr-evidence/issue-1272/after-long.png` (+0 -0) ➕ `pr-evidence/issue-1272/after-short.png` (+0 -0) ➕ `pr-evidence/issue-1272/before-long.png` (+0 -0) ➕ `pr-evidence/issue-1272/before-short.png` (+0 -0) </details> ### 📄 Description <!-- Target branch: `staging`. The default base in this UI is `main` (release branch). --> <!-- Change the base to `staging` before submitting unless this is a maintainer-approved mainline change. --> <!-- See CONTRIBUTING.md § Branches. --> ## Linked issue <!-- Every PR should reference a feature request or issue report. If there isn't one yet, open one first to gather opinions: --> <!-- https://github.com/Pasta-Devs/Marinara-Engine/issues/new/choose --> Closes #1272 ## Why this change <!-- What user problem, bug, or goal does this solve? --> - Roleplay panel-style character avatars were clipped to the short message bubble height, so the full avatar only appeared once the message text was tall enough. ## What changed <!-- List the key changes in this PR --> - Added a panel-avatar-only minimum bubble height that matches the existing roleplay avatar panel stack height. - Added scoped UI evidence screenshots under `pr-evidence/issue-1272/` so the before/after proof renders from GitHub. ## Validation <!-- Required: include commands run and/or manual checks performed --> - [ ] `pnpm check` passes locally - [ ] Container (Docker / Podman) built and ran without issue - [ ] Ran the app, clicked through the changes manually - [ ] Checked edge cases (light + dark mode, mobile viewport, empty states, error paths) - [ ] Above manual verification completed (describe below) - [ ] Read and followed `CONTRIBUTING.md` ### Manual verification notes <!-- Describe exactly what you tested in a real browser/app, step by step. --> <!-- ⚠️ If an AI agent filled out or ticked these boxes for you, treat them --> <!-- as a TO-DO LIST, not as proof the work is done. Verify each item yourself --> <!-- before submitting. If you haven't verified it, untick the box. --> - Codex seeded a roleplay chat with panel avatars and measured the same avatar before/after the fix with `node scratch/issue-1272-roleplay-avatar-height.mjs`. - Before fix: short message showed only 50px of a 187px panel avatar; long message showed the full 187px. - After fix: short and long messages both showed the full 187px avatar. - Edge checks: circle and rectangle roleplay avatar styles still used the compact avatar path and did not render the panel column. - `pnpm check` passed locally after rerunning with a longer timeout; the first attempt timed out at 124s, the second completed in 143s. - `node C:\Users\celia\.codex\tools\marinara-proof-gate.mjs scratch/bugfix-verification.json` passed. - Bunny review pass: focused diff, targets `staging`, proof covers the issue symptom, no schema/version/dependency/storage/prompt changes. ## Docs and release impact - [ ] No docs changes needed - [ ] Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed - [ ] Version/release files updated (only if this PR includes a version bump) ## UI evidence (if applicable) Before, short message clips the avatar: ![Before short](https://raw.githubusercontent.com/cha1latte/Marinara-Engine/fix/issue-1272-roleplay-avatar-height/pr-evidence/issue-1272/before-short.png) After, short message shows the full panel avatar: ![After short](https://raw.githubusercontent.com/cha1latte/Marinara-Engine/fix/issue-1272-roleplay-avatar-height/pr-evidence/issue-1272/after-short.png) Before, long message was tall enough to show the full avatar: ![Before long](https://raw.githubusercontent.com/cha1latte/Marinara-Engine/fix/issue-1272-roleplay-avatar-height/pr-evidence/issue-1272/before-long.png) After, long message still shows the full avatar: ![After long](https://raw.githubusercontent.com/cha1latte/Marinara-Engine/fix/issue-1272-roleplay-avatar-height/pr-evidence/issue-1272/after-long.png) <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Style** * Adjusted the minimum height of the roleplay message bubble layout when the roleplay avatar panel is displayed. <!-- review_stack_entry_start --> [![Review Change Stack](https://storage.googleapis.com/coderabbit_public_assets/review-stack-in-coderabbit-ui.svg)](https://app.coderabbit.ai/change-stack/Pasta-Devs/Marinara-Engine/pull/1311?utm_source=github_walkthrough&utm_medium=github&utm_campaign=change_stack) <!-- review_stack_entry_end --> <!-- 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:12:36 +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#5029
No description provided.