mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #2041] [MERGED] Fix Avatar Crop mount sizing #5404
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#5404
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/2041
Author: @cha1latte
Created: 6/3/2026
Status: ✅ Merged
Merged: 6/3/2026
Merged by: @cha1latte
Base:
refactor← Head:fix/issue-2003-avatar-crop-stability📝 Commits (1)
7885b5eFix avatar crop mount sizing📊 Changes
1 file changed (+71 additions, -62 deletions)
View changed files
📝
src/shared/components/ui/AvatarCropWidget.tsx(+71 -62)📄 Description
Linked issue
Closes #2003
Why this change
What changed
imgRectis not initialized, preventing the fallback360x360image from painting as a visible oversized first frame.Refactor impact
Primary owner:
Catalog / shared UI.
Impact areas reviewed:
Boundary notes:
src/shared/components/ui/AvatarCropWidget.tsx.Pressure points touched:
Validation
pnpm typecheck,pnpm build,pnpm check:architecture,pnpm check:docs, or fullpnpm checkwhen warranted)pnpm checkpasses before PR push/handoffManual verification notes
node scratch/avatar-crop-measure.mjsagainst unpatchedorigin/refactor: reproduced visible pre-measure360x360crop image for small, wide, tall, and same-widget source-switch cases; after load, the stage snapped to120x240,360x180, or180x360.node scratch/avatar-crop-measure.mjsagainst this branch: pre-measure image is hidden inside a stable360x360stage; loaded inner frames resolve to120x240,360x180, and180x360; same-widget source switch stays stable and hidden until the new image resolves to360x180.pnpm typecheckpassed.pnpm checkpassed.C:/Users/celia/.codex/tools/marinara-proof-gate.mjsis referenced by local workflow docs but is not present on this machine, so that optional artifact gate could not be run.Feature Discoverability
Check exactly one:
src/features/shell/discovery/because this PR adds or materially changes a user-discoverable feature, workflow, setting, mode, panel, import path, agent, media capability, or advanced tool.Reason:
Docs and release impact
README.mdCONTRIBUTING.mddocs/developer/AGENTS.mdUI evidence
Reviewer-visible image upload is still pending for this draft. Local proof screenshots from the verification run are in
scratch/avatar-crop-broken-before.png,scratch/avatar-crop-before.png, andscratch/avatar-crop-after.png;gh gist createcould not upload binary PNG files from this environment, so the PR remains draft until these are attached through a GitHub-renderable upload path.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.