[PR #3742] [MERGED] fix: contain existing avatars in Character Metadata editor #6081

Closed
opened 2026-10-23 04:06:55 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/3742
Author: @SpicyMarinara
Created: 7/17/2026
Status: ✅ Merged
Merged: 7/17/2026
Merged by: @SpicyMarinara

Base: staging ← Head: fix/3741-character-avatar-preview


📝 Commits (1)

  • f9b8c4e fix(character-editor): contain saved avatar crops

📊 Changes

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

View changed files

📝 CHANGELOG.md (+4 -0)
📝 packages/client/src/components/characters/CharacterEditor.tsx (+1 -1)
📝 scripts/regressions/open-issues.regression.ts (+5 -0)

📄 Description

Why

In v2.3.3, opening a Character Card with a current-format cropped avatar can make the avatar escape the new Metadata preview and cover the entire editor. The shared crop renderer uses absolute positioning, but this newly added preview did not establish a positioning context.

Fixes #3741.

What changed

  • Anchor the Metadata avatar preview with relative positioning.
  • Add a regression guard for the required crop container.
  • Record the fix under Unreleased.

Test plan

  • Manually open a Character Card with an existing current-format cropped avatar and verify the image stays inside the Metadata preview.
  • Manually confirm the Character Card remains editable on desktop and mobile layouts.
  • Run pnpm regression:issues.
  • Run pnpm check.

Proof so far

  • pnpm regression:issues passed locally.
  • pnpm check passed locally, including TypeScript, ESLint, production build, and PWA generation.
  • Browser click-through was attempted, but the available browser connection failed before attaching. Manual desktop and mobile confirmation remains required.

Summary by CodeRabbit

  • Bug Fixes
    • Fixed cropped Character avatars in the Metadata upload preview so they remain contained within the preview card instead of covering the editor.
    • Added regression coverage to help prevent this display issue from recurring.

🔄 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/3742 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 7/17/2026 **Status:** ✅ Merged **Merged:** 7/17/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `fix/3741-character-avatar-preview` --- ### 📝 Commits (1) - [`f9b8c4e`](https://github.com/Pasta-Devs/Marinara-Engine/commit/f9b8c4e0f09f3b8cc3841174dcbe3bce014b1603) fix(character-editor): contain saved avatar crops ### 📊 Changes **3 files changed** (+10 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+4 -0) 📝 `packages/client/src/components/characters/CharacterEditor.tsx` (+1 -1) 📝 `scripts/regressions/open-issues.regression.ts` (+5 -0) </details> ### 📄 Description ## Why In v2.3.3, opening a Character Card with a current-format cropped avatar can make the avatar escape the new Metadata preview and cover the entire editor. The shared crop renderer uses absolute positioning, but this newly added preview did not establish a positioning context. Fixes #3741. ## What changed - Anchor the Metadata avatar preview with relative positioning. - Add a regression guard for the required crop container. - Record the fix under Unreleased. ## Test plan - [ ] Manually open a Character Card with an existing current-format cropped avatar and verify the image stays inside the Metadata preview. - [ ] Manually confirm the Character Card remains editable on desktop and mobile layouts. - [ ] Run pnpm regression:issues. - [ ] Run pnpm check. ## Proof so far - pnpm regression:issues passed locally. - pnpm check passed locally, including TypeScript, ESLint, production build, and PWA generation. - Browser click-through was attempted, but the available browser connection failed before attaching. Manual desktop and mobile confirmation remains required. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Bug Fixes** * Fixed cropped Character avatars in the Metadata upload preview so they remain contained within the preview card instead of covering the editor. * Added regression coverage to help prevent this display issue from recurring. <!-- 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-23 04:06:55 +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#6081
No description provided.