mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #1169] [MERGED] fix/avatar crop scaling #4954
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#4954
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/1169
Author: @ghost
Created: 5/24/2026
Status: ✅ Merged
Merged: 5/24/2026
Merged by: @cha1latte
Base:
refactor← Head:fix/refactor-pr-55-avatar-crop-scaling📝 Commits (1)
cd1240fMigrate Refactor PR #55: Fix avatar crop scaling📊 Changes
3 files changed (+72 additions, -27 deletions)
View changed files
➕
src/features/catalog/characters/components/CharacterAvatarImage.tsx(+48 -0)📝
src/features/catalog/characters/components/CharacterLibraryView.tsx(+7 -14)📝
src/features/catalog/characters/components/CharactersPanel.tsx(+17 -13)📄 Description
Migrated from Pasta-Devs/Marinara-Engine-Refactor#55: https://github.com/Pasta-Devs/Marinara-Engine-Refactor/pull/55
Original author: @Promansis
Target base: Pasta-Devs/Marinara-Engine refactor
Source draft state: True
Port note: source updates/tracker/evidence files were omitted because the target refactor branch removed repo-local updates guidance.
Linked issue
Fixes #1158
Original migrated source issue: Pasta-Devs/Marinara-Engine-Refactor#35.
Why this change
Character library avatars should follow one explicit crop display contract. The old library and panel paths could pass a persisted JSON-string
avatarCropdirectly into the crop style helper, which produced invalid crop sizing and could render squished full-image avatars instead of the stored crop.What changed
CharacterAvatarImagehelper in the React character feature.object-coverfallback for missing or invalid crop data.Validation
pnpm checkpnpm buildcargo check --manifest-path src-tauri/Cargo.tomlpnpm check:docswhen docs, skills, or repo guidance changedpnpm tauri devand tested the app path manuallyCodex verification notes
object-fit: fill, then verified the shared helper renders the same persisted string crop as 320x160 absolute crop geometry.object-cover.pnpm checkpassed locally: architecture, frontend typecheck, Rust cargo check, and docs check.pnpm buildpassed locally. Vite reported existing chunk-size/dynamic-import warnings.scratch/bugfix-verification.json.Manual verification notes
No manual verification needed for the core claim. The local proof uses a Vite-served React harness importing the production
CharacterAvatarImagehelper because the browser-only dev app cannot list local Tauri storage rows without the Tauri runtime.Docs impact
docs/developer/*or repo guidance as neededUI evidence
Summary by CodeRabbit
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.