fix(web): preserve inline attachment image bounds - #6505
Conversation
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
ApprovabilityVerdict: Approved 62f8a96 Single-line CSS change switching image scaling from You can customize Macroscope's approvability policy. Learn more. |
|
Closed after fresh browser reproduction showed the proposed object-fit change produced identical before/after rendering; no effective fix was shipped. |
Problem
Inline user-image previews used
object-cover, which cropped tall screenshots and cut into their rounded corners.Fix
Use
object-containso the preview preserves the uploaded image bounds while the existing rounded, overflow-hidden wrapper continues to clip the corners cleanly.Before / After
Before
After
Verification
vp run --filter @t3tools/web testvp run --filter @t3tools/web typecheckvp lint apps/web/src/components/chat/MessagesTimeline.tsxModel: GPT-5.6-Luna | Harness: OpenCode in T3 Code