Skip to content

[6.x] Avoid widget table overflow - #14851

Merged
jasonvarga merged 2 commits into
statamic:6.xfrom
daun:fix/colletion-widget-overflow
Jun 19, 2026
Merged

[6.x] Avoid widget table overflow#14851
jasonvarga merged 2 commits into
statamic:6.xfrom
daun:fix/colletion-widget-overflow

Conversation

@daun

@daun daun commented Jun 19, 2026

Copy link
Copy Markdown
Contributor

Super-long entry titles make the collection widget table extend beyond the widget container. This should prevent it.

Before

Screenshot 2026-06-19 at 21 09 21

After

Screenshot 2026-06-19 at 21 10 56

@jasonvarga

Copy link
Copy Markdown
Member

There's already overflow handling though. Clearly not quite working right. 🤔

overflow-x-auto is awkward because you get scrollbars (on Windows or when configured on Mac)

@daun

daun commented Jun 19, 2026

Copy link
Copy Markdown
Contributor Author

True. I find that the existing overflow handling works if I change the table to table-layout: fixed, but then all columns are equal width. Not really an option.

Or maybe just overflow: hidden? This is clearly an edge case, and the visually confusing part is the text extending beyond the widget container, not the table not being scrollable.

@jasonvarga

Copy link
Copy Markdown
Member

I take back my critique. The scrollbars only appear when there's actually something to scroll, which is fine.

@daun

daun commented Jun 19, 2026

Copy link
Copy Markdown
Contributor Author

Applying word-break: break-word; to the main column of a table also seems to do the trick. Tailwind doesn't have a class for that particular value though for some reason.

@jasonvarga

Copy link
Copy Markdown
Member

That's because break-word is deprecated from the css spec.

@jasonvarga jasonvarga changed the title [6.x] Avoid collection widget table overflow [6.x] Avoid widget table overflow Jun 19, 2026
@jasonvarga
jasonvarga merged commit 8b1967b into statamic:6.x Jun 19, 2026
19 checks passed
@daun
daun deleted the fix/colletion-widget-overflow branch June 19, 2026 19:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants