Skip to content

fix: show filenames on tight space - #65131

Open
kristian-zendato wants to merge 1 commit into
masterfrom
fix/files-list-responsive
Open

kristian-zendato wants to merge 1 commit into
masterfrom
fix/files-list-responsive

Conversation

@kristian-zendato

@kristian-zendato kristian-zendato commented Oct 5, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Add useFileListLayout that works out which parts of the list fit into the available width and hides them one at a time until the name column has at least 200px
  • FilesListVirtual computes the layout from the list width and the available columns. It then provides the layout to FileEntry, FileEntryActions, FilesListTableHeader and FilesListTableFooter, so the header, rows and footer always show the same columns.
  • Each row's FileEntryActions reports how much width its inline actions need. That includes render actions, which are measured with a ResizeObserver because they render asynchronously. The layout uses the largest width reported. That value is reset when the current folder or view changes.
  • Inline actions are no longer always hidden when isNarrow is set. They are now hidden only when there isn't enough space for them.

Checklist

AI (if applicable)

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

Signed-off-by: kristian-zendato <kristian.zendato@nextcloud.com>
@kristian-zendato
kristian-zendato requested review from a team and skjnldsv as code owners October 5, 2026 11:06
@kristian-zendato
kristian-zendato requested review from sorbaugh and susnux and removed request for a team October 5, 2026 11:06
@susnux susnux added bug 3. to review Waiting for reviews feature: files team: Files Code maintained by 📁 Files team labels Oct 5, 2026
@susnux susnux added this to the Nextcloud 36 milestone Oct 5, 2026
@skjnldsv

skjnldsv commented Oct 6, 2026

Copy link
Copy Markdown
Member

Screenshots ? 😊

This branch has not been deployed

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

Labels

3. to review Waiting for reviews bug feature: files team: Files Code maintained by 📁 Files team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Filenames get hidden if space is tight

3 participants