mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #928] [MERGED] fix(game): respect persona avatarCrop on all Game Mode portraits #4842
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#4842
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/928
Author: @Romuromylus
Created: 5/16/2026
Status: ✅ Merged
Merged: 5/17/2026
Merged by: @Romuromylus
Base:
staging← Head:fix/game-persona-avatar-crop📝 Commits (1)
6ed1870fix(game): respect persona avatarCrop on all Game Mode portraits📊 Changes
3 files changed (+26 additions, -27 deletions)
View changed files
📝
packages/client/src/components/game/GameNarration.tsx(+1 -1)📝
packages/client/src/components/game/GameSetupWizard.tsx(+23 -26)📝
packages/client/src/components/game/GameSurface.tsx(+2 -0)📄 Description
Linked issue
Closes #926
Why this change
{{user}}lines, and the setup wizard's persona picker), ignoring the crop set in the persona's Avatar Crop widget.personaInfo.avatarCropis already populated upstream atpackages/client/src/components/chat/ChatArea.tsxviaparseAvatarCropJson, and thePersonaInfotype already declares the field. Four Game Mode builders just don't read it.What changed
packages/client/src/components/game/GameNarration.tsx— the persona'ssetAvatarInfocall insidespeakerAvatarInfosnow passescrop: personaInfo.avatarCrop, mirroring the character branch one line above.packages/client/src/components/game/GameSurface.tsx— both thepartyMemberspersona branch and thepartyCardsplayer-persona-card branch now includeavatarCrop: personaInfo.avatarCrop ?? null. Downstream consumers (GamePartyBar,GamePartySidebar,GameCharacterSheet) already readavatarCropand callgetAvatarCropStyle, so feeding the field through is sufficient.packages/client/src/components/game/GameSetupWizard.tsx— extended the inlinepersonasrow type withavatarCrop?: string | null, importedparseAvatarCropJson, and routed the two persona render sites through the existingCharacterAvatarhelper (which already handlesgetAvatarCropStyle) instead of raw<img>blocks.No prompt, schema, server, or persisted-data changes — purely client-side render plumbing.
Validation
pnpm checkpasses locallyCONTRIBUTING.mdManual verification notes
What I verified on a fork build deployed to my private EasyPanel instance:
{{user}}lines.Things I'd appreciate maintainers double-checking:
getAvatarCropStylepath, but worth a sanity check.avatarCropset at all — should fall back to the uncropped circle exactly as before (the helpers all guard onnull).<img>blocks were replaced with the styledCharacterAvatarcomponent — visual sizing should match (both usedh-6 w-6 rounded-full).Docs and release impact
Summary by CodeRabbit
Release Notes
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.