fix(chat): limit multiple file message to a single row - #19005
Conversation
In general we can split showing images in first row as a grid/masonry, and files - below with a similar styling. My issue with that is - Mail uses it in a composer area, contrary to Talk, where it's the final appearance of the content |
|
I also think that splitting things up for images (masonry, first image 2x2, others 1x1) and below the other files in a list view (1 or two coloumns of files in a compact list) is a good idea. |
|
FYI @nimishavijay implementing a wrapper component for files here #19020 to allow better experience. So don't hold back with ideas and mockups =) |
- if await for compressImage (~100-200ms), it would produce visual disruption Assisted-by: ClaudeCode:claude-opus-5 Signed-off-by: Maksim Sukharev <antreesy.web@gmail.com>
- if messages will be combined after they shared, they should look correctly during upload as well Assisted-by: ClaudeCode:claude-opus-5 Signed-off-by: Maksim Sukharev <antreesy.web@gmail.com>
- move circle in file icon/preview area - render indeterminate state as spinner Assisted-by: ClaudeCode:claude-opus-5 Signed-off-by: Maksim Sukharev <antreesy.web@gmail.com>
FilePreviewsWrapper now splits a combined file message into two groups: images with a server-side preview (no name shown), and everything else. Images render as one row of up to 4 thumbnails; a 5th+ image collapses into a "+X more" tile. Clicking any thumbnail (including "+X more") opens the Viewer scoped to this message's own image group only, instead of every media file shared in the conversation (that behavior is kept for the SharedItemsTab/Browser via isSharedItems). Non-image files still render as a stacked column of row-layout previews. Assisted-by: ClaudeCode:claude-sonnet-4-6 Signed-off-by: Maksim Sukharev <antreesy.web@gmail.com>
Row-layout FilePreview (used for non-image files in a combined message, and file/audio/other rows in SharedItemsTab) now shows the file name and a second, muted line with 'EXTENSION · size' below it, both in small font. Previously only the file name was shown. Assisted-by: ClaudeCode:claude-sonnet-4-6 Signed-off-by: Maksim Sukharev <antreesy.web@gmail.com>
'Go to file'/'Download file' moved out of the message-wide action menu (MessageButtonsBar), where they only ever applied to the first file of a combined file message, into a new FilePreviewActions component. FilePreviewsWrapper renders a single FilePreviewActions instance, repositioned over whichever file tile is currently hovered, so every file in a combined message gets its own correct actions. Assisted-by: ClaudeCode:claude-sonnet-4-6 Signed-off-by: Maksim Sukharev <antreesy.web@gmail.com> [skip ci]
7c80ca6 to
13ff9f0
Compare






☑️ Resolves
AI (if applicable)
🖌️ UI Checklist
🖼️ Screenshots / Screencasts
🏁 Checklist