mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #926] [Issue]: Game Mode persona portrait ignores avatar crop everywhere #451
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#451
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?
Originally created by @Romuromylus on GitHub (May 16, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/926
Originally assigned to: @Romuromylus on GitHub.
Summary
In Game Mode, my user persona's portrait renders with the uncropped avatar image everywhere it appears (party portrait bar, party sidebar, character sheet, dialogue-line portraits next to my lines, and the setup wizard's persona picker). The avatar crop set in the persona's avatar settings is ignored. NPC and party-character portraits still respect their crops correctly. Same shape as the chat-side propagation gaps fixed in #665 / #669, but extended to Game Mode surfaces that were never threaded through.
Expected behavior
Wherever the user persona portrait shows in Game Mode, it should respect the crop set in the persona's Avatar Crop widget, matching how the same persona renders in Roleplay / Conversation modes.
Actual behavior
The user persona portrait renders uncropped (full source image squashed into the circle) in every Game Mode surface:
GamePartyBar)GamePartySidebar)GameCharacterSheetviapartyCards)GameNarrationviaspeakerAvatarInfos)GameSetupWizard)Party-character (non-persona) portraits in the same surfaces respect their crop, so the data plumbing works end-to-end for characters; the persona branches were just missed.
Steps to reproduce
Environment
Logs, screenshots, or video
No console errors. The data trace is straightforward:
personaInfo.avatarCropis correctly populated upstream atpackages/client/src/components/chat/ChatArea.tsxviaparseAvatarCropJson(persona.avatarCrop), andPersonaInfoalready declares theavatarCropfield.c.avatarCrop ?? fromMap?.avatarCrop ?? null).packages/client/src/components/game/GameNarration.tsx— personasetAvatarInfocall passesurlonly (the character branch one line above passescrop).packages/client/src/components/game/GameSurface.tsx—partyMembersbuilder's persona branch andpartyCardsbuilder's player-persona branch both omitavatarCrop.packages/client/src/components/game/GameSetupWizard.tsx— the inlinepersonasrow type doesn't declareavatarCrop, and the two<img>blocks for persona rows don't usegetAvatarCropStyle(they're not routed through theCharacterAvatarhelper that already exists in the file).Downstream consumers (
GamePartyBar,GamePartySidebar,GameCharacterSheet) all already readavatarCropand callgetAvatarCropStyle, so just feeding the field through fixes those surfaces.Additional context
Same shape as #665 / #669 — chat-side propagation was completed for chat surfaces but never extended to Game Mode persona surfaces.
Template check
Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked: