Skip to content

fix(chat): limit multiple file message to a single row - #19005

Draft
Antreesy wants to merge 6 commits into
mainfrom
fix/18989/multiple-files
Draft

fix(chat): limit multiple file message to a single row#19005
Antreesy wants to merge 6 commits into
mainfrom
fix/18989/multiple-files

Conversation

@Antreesy

@Antreesy Antreesy commented Aug 14, 2026

Copy link
Copy Markdown
Contributor

☑️ Resolves

AI (if applicable)

  • The content of this PR was partly or fully generated using AI

🖌️ UI Checklist

🖼️ Screenshots / Screencasts

🏚️ Before 🏡 After
Screenshot before Screenshot after
2026-08-14_14h37_08 2026-08-14_14h36_52

🏁 Checklist

  • 🌏 Tested with different browsers / clients:
    • Chromium (Chrome / Edge / Opera / Brave)
    • Firefox
    • Safari
    • Talk Desktop
    • Integrations with Files sidebar and other apps
    • Not risky to browser differences / client
  • 🖌️ Design was reviewed, approved or inspired by the design team
  • ⛑️ Tests are included or not possible
  • 📗 User documentation in https://github.com/nextcloud/documentation/tree/master/user_manual/talk has been updated or is not required

@Antreesy Antreesy added this to the ⛅ Next Beta/RC (35) milestone Aug 14, 2026
@Antreesy
Antreesy requested a review from nimishavijay August 14, 2026 12:43
@Antreesy Antreesy self-assigned this Aug 14, 2026
@Antreesy Antreesy added feature: frontend 🖌️ "Web UI" client feature: upload & shares & voice 📤🎙️ Sharing files into a chat and audio recordings design labels Aug 14, 2026
@nimishavijay

Copy link
Copy Markdown
Member

since we try to avoid horizontal scrolling in other places in NC, I'm wondering if we can find a way to minimize the empty space... maybe we can do a mosaic grid/masonry here too? It would look okay for images but sure about files.

Also thinking about showing files differently, to give more importance to the file name instead of the thumbnail, sort of like attachments in Mail, what do you think?

image

@Antreesy

Copy link
Copy Markdown
Contributor Author

maybe we can do a mosaic grid/masonry here too? It would look okay for images but sure about files.
Also thinking about showing files differently, to give more importance to the file name instead of the thumbnail, sort of like attachments in Mail, what do you think?

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

@bentuna

bentuna commented Aug 17, 2026

Copy link
Copy Markdown

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.

@bentuna

bentuna commented Aug 17, 2026

Copy link
Copy Markdown

FYI: Google Chat is very disappointing here and just doesn't let you upload certain file types together:
Bildschirmfoto 2026-08-17 um 08 19 36

@Antreesy

Copy link
Copy Markdown
Contributor Author

FYI @nimishavijay implementing a wrapper component for files here #19020 to allow better experience. So don't hold back with ideas and mockups =)

@Antreesy
Antreesy marked this pull request as draft August 17, 2026 16:41
@nimishavijay

nimishavijay commented Aug 25, 2026

Copy link
Copy Markdown
Member

It could look like this:

image image

Clicking on it could open the file and hovering over it could show whatever actions available in a 3 dot menu at the end. I would suggest "Download" to begin with.

The arrangement of the files is still something I haven't figured out yet. With masonry + this new file preview in the same view, it could become complicated to effectively display everything. Ideally the file preview wouldn't be too wide, and the images won't have too few columns.

- 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]
@Antreesy
Antreesy force-pushed the fix/18989/multiple-files branch from 7c80ca6 to 13ff9f0 Compare August 25, 2026 17:04
@Antreesy

Copy link
Copy Markdown
Contributor Author

Will continue tommorow from here:

Before After
2026-08-25_18h25_15 2026-08-25_18h58_17

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

design feature: frontend 🖌️ "Web UI" client feature: upload & shares & voice 📤🎙️ Sharing files into a chat and audio recordings

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Group multiple images in one message - collage / canvas / grid layout

3 participants