Skip to content

web: collapse table columns instead of forcing horizontal scroll - #6816

Open
skeet70 wants to merge 1 commit into
tilt-dev:masterfrom
skeet70:responsive-table-columns
Open

web: collapse table columns instead of forcing horizontal scroll#6816
skeet70 wants to merge 1 commit into
tilt-dev:masterfrom
skeet70:responsive-table-columns

Conversation

@skeet70

@skeet70 skeet70 commented Aug 5, 2026

Copy link
Copy Markdown

Note: the code and tests were created with generative AI assistance to background solving an annoyance I keep running into at work.

I use a tiling window manager so it comes up frequently for me, but I imagine folks with laptop screens and the sidebar open or with vertical side monitors also run into it.

The resources table has a hard min-width: 1400px, and anything less than that results is a scrollbar. The top bar for the page is responsive. The mix of those things makes my brain constantly forget I need to scroll horizontally to see/interact with things.

This change makes the columns responsively collapse into a per-row detail panel as the resources table narrows, dropping right to left. The selection checkbox and resource name never collapse.

I'll note that the breakpoint values for when to collapse given columns are hand-tuned, I couldn't think of a good way to make them more intelligent without an extra layout pass.

Screenshots of before and after:

Before Screenshots before-full before-small-scrolled before-small before-smaller-scrolled before-smaller
After Screenshots after-collapsed after-expanded-smaller after-expanded

Signed-off-by: Murph Murphy <murph.murphy@ironcorelabs.com>
@skeet70
skeet70 force-pushed the responsive-table-columns branch from dbcc53f to 86f2225 Compare August 5, 2026 21:17
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.

1 participant