You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug]: Very wide images in user messages show only an enlarged center crop on web #38549
I searched existing issues and did not find a duplicate.
I included enough detail to reproduce or investigate the problem.
Area
apps/web
Steps to reproduce
Paste a single wide image into the composer, such as the 900×48 test image under Screenshots or a screenshot of one UI row.
Send it, with or without text.
Look at the image thumbnail in the sent message.
Expected behavior
The thumbnail shows the whole image, scaled to fit, as mobile already does (UserMessageMedia in apps/mobile/src/features/threads/ThreadFeed.tsx uses contentFit="contain" for a lone image).
Actual behavior
The thumbnail shows only a 192px-tall slice from the middle of the image, with both ends cut off. For a screenshot of a settings row, that is a large blank rounded box with none of the row's text or icons. An image shorter than 192px is also upscaled to fill that height, so a 900×48 test image is enlarged 4× and blurry, showing only part of its center text. Clicking it still opens the full image.
Cause: a lone image in a user message is drawn at a fixed height and center-cropped (TimelineUserMessageRow.tsx, loneImage branch):
h-48 w-auto min-w-24 max-w-full object-cover
#27306 meant this as "a lone image at a fixed 192px height in its own aspect ratio". That works until the image is wider than max-w-full / 192px allows (about 3.3:1 when 80% of the chat column is 640px). After that, max-w-full limits the width, the height stays at 192px, and object-cover crops the center. Very tall, narrow images are cropped the same way vertically once min-w-24 applies.
A possible fix is to cap the height instead of fixing it, the way the snapshot branch next to it already does (h-auto max-h-48 w-auto min-w-24 max-w-full object-contain). Keep a minimum frame height so a flat image is still easy to click. Because the timeline is virtualized, check that the row does not jump in height when the lazily loaded image decodes.
Impact
Cosmetic issue
Version or commit
0.1.11-nightly.20261118.4864 (code unchanged on main @ e6265a9)
Environment
Linux (Fedora 44). Shared web UI, so browser and desktop; provider-independent.
Workaround
Click the thumbnail to open the full image.
Screenshots
The 900×48 test image that was sent:
How the sent message shows it: an upscaled crop of the center text, with neither end visible:
changed the title [-]Very wide images in user messages are center-cropped to a blank slice on web[/-][+][Bug]: Very wide images in user messages are center-cropped to a blank slice on web[/+]on Nov 18, 2026
changed the title [-][Bug]: Very wide images in user messages are center-cropped to a blank slice on web[/-][+][Bug]: Very wide images in user messages show only an enlarged centre crop on web[/+]on Nov 18, 2026
changed the title [-][Bug]: Very wide images in user messages show only an enlarged centre crop on web[/-][+][Bug]: Very wide images in user messages show only an enlarged center crop on web[/+]on Nov 18, 2026
Activity
[-]Very wide images in user messages are center-cropped to a blank slice on web[/-][+][Bug]: Very wide images in user messages are center-cropped to a blank slice on web[/+][-][Bug]: Very wide images in user messages are center-cropped to a blank slice on web[/-][+][Bug]: Very wide images in user messages show only an enlarged centre crop on web[/+][-][Bug]: Very wide images in user messages show only an enlarged centre crop on web[/-][+][Bug]: Very wide images in user messages show only an enlarged center crop on web[/+]