mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #675] [Issue]: Wide-rectangle glued panel cuts off face on short messages with top-of-source avatars #320
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#320
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 11, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/675
Summary
Follow-up to #673 / PR #674. On SHORT messages in Glued Side Panel mode, the panel adapts to bubble height and becomes a wide rectangle. PR #674 routes the new-format avatar crop center to
object-position, butobject-coverof a tall portrait into a wide rectangle crops the top off — and a centered focal point (50%/50% for a face at top-of-source) lands on chin/chest instead of the face. The Small Rectangles compact style is similarly affected for any persona/character whose face lives near the top of the source.Expected behavior
For new-format crops on RP rectangle sites, the head/face area of a top-of-source portrait should remain visible regardless of bubble height (i.e. the wide-rectangle short-message case should not cut the face off). Pre-PR #671 behavior —
object-cover object-topon the raw source — handled this correctly.Actual behavior
Short user message (e.g.
test) + persona with a saved new-formatavatarCropwhose subject is at the top of the source → Glued Side Panel renders only chin/neck/chest of the persona. Longer messages render fine because the panel grows tall andobject-coverthen preserves the top.Steps to reproduce
avatarCropis the new-format{srcX, srcY, srcWidth, srcHeight}shape.Environment
6369722e)Logs, screenshots, or video
Pre-fix screenshot of the Glued Side Panel: short user message ("Oh right, the ritual…what's the ritual?") shows only chin/chest of the persona, while the character's panel (longer message) renders normally.
Additional context
object-positionmapping)rectangleSafeCropStyle(inpackages/client/src/components/chat/ChatMessage.tsx): return{}instead of{ objectPosition }so the<img>classNameobject-cover object-topgoverns. Legacy{zoom, offsetX, offsetY}crops still pass through unchanged because they compose with object-cover as a CSS transform.Template check
Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked: