[PR #3743] [MERGED] fix: contain existing avatars in Character Metadata editor #6082

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/3743
Author: @SpicyMarinara
Created: 7/17/2026
Status: ✅ Merged
Merged: 7/17/2026
Merged by: @SpicyMarinara

Base: main ← Head: staging


📝 Commits (2)

  • f9b8c4e fix(character-editor): contain saved avatar crops
  • c78b356 Merge pull request #3742 from Pasta-Devs/fix/3741-character-avatar-preview

📊 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

The v2.3.3 Character Metadata avatar preview lacked a positioning context. Existing current-format cropped avatars are absolutely positioned by design, so the image could escape the preview and cover the entire editor.

Promotes the already validated staging fix from #3742. Closes #3741.

What changed

  • Keep saved cropped avatars inside the 64 by 64 pixel Metadata preview.
  • Add a regression guard for the required positioning context.
  • Record the patch under Unreleased without changing the 2.3.3 version.

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.

Validation

  • pnpm regression:issues passed locally on #3742.
  • pnpm check passed locally on #3742.
  • GitHub pnpm-validate and container-build-test passed on #3742.
  • CodeRabbit completed with no actionable review threads.

Summary by CodeRabbit

  • Bug Fixes

    • Fixed cropped character avatars in the metadata upload preview so they remain contained within the card editor instead of covering it.
    • Improved the avatar preview layout when uploading or replacing an avatar.
  • Tests

    • Added regression coverage to verify the corrected avatar preview behavior.

🔄 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/3743 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 7/17/2026 **Status:** ✅ Merged **Merged:** 7/17/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `main` ← **Head:** `staging` --- ### 📝 Commits (2) - [`f9b8c4e`](https://github.com/Pasta-Devs/Marinara-Engine/commit/f9b8c4e0f09f3b8cc3841174dcbe3bce014b1603) fix(character-editor): contain saved avatar crops - [`c78b356`](https://github.com/Pasta-Devs/Marinara-Engine/commit/c78b356f3505c6c4c618a9459da8b9b0f7c63725) Merge pull request #3742 from Pasta-Devs/fix/3741-character-avatar-preview ### 📊 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 The v2.3.3 Character Metadata avatar preview lacked a positioning context. Existing current-format cropped avatars are absolutely positioned by design, so the image could escape the preview and cover the entire editor. Promotes the already validated staging fix from #3742. Closes #3741. ## What changed - Keep saved cropped avatars inside the 64 by 64 pixel Metadata preview. - Add a regression guard for the required positioning context. - Record the patch under Unreleased without changing the 2.3.3 version. ## 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. ## Validation - pnpm regression:issues passed locally on #3742. - pnpm check passed locally on #3742. - GitHub pnpm-validate and container-build-test passed on #3742. - CodeRabbit completed with no actionable review threads. <!-- 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 card editor instead of covering it. * Improved the avatar preview layout when uploading or replacing an avatar. * **Tests** * Added regression coverage to verify the corrected avatar preview behavior. <!-- 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#6082
No description provided.