Make Company column scrollable on mobile; only # stays sticky - #27
Open
KonstantinMB wants to merge 2 commits into
Open
Make Company column scrollable on mobile; only # stays sticky#27KonstantinMB wants to merge 2 commits into
KonstantinMB wants to merge 2 commits into
Conversation
Two bugs caused content from scrolling columns to show through the sticky # and Company columns on mobile horizontal scroll: 1. Sticky td on odd rows used bg-muted/5 (5% opacity) — nearly transparent, letting scrolling columns show through. Now always bg-background (fully opaque) regardless of row parity. 2. Sticky th cells used bg-muted/30 (30% opacity) for the same reason. Changed to bg-background. 3. Added minWidth: max-content on the table so it never compresses below its visible column widths. Without this, w-full collapses the table to 343px on mobile and table-layout:auto ignores cell-level minWidth hints. Added border-r on the Company column to visually separate the sticky area from the scrolling content. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013XsZSM7E8ShnL5hohYaLWu
The Company column (220px) was sticky alongside the # column (44px), consuming 264px of a 375px mobile viewport (70%) and leaving little room to view other columns. Removing its sticky positioning lets it scroll away freely. The # column (44px) stays pinned at left-0 to provide row context with minimal space cost. Moved the separator border-r to the # column so the sticky boundary is still visible. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013XsZSM7E8ShnL5hohYaLWu
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The Company column (220px) and
#column (44px) were both sticky, consuming 264px of a 375px mobile viewport — 70% of the screen — leaving only ~111px of visible area for the scrolling columns.Removed sticky positioning from the Company column so it scrolls freely with the rest of the table. The
#column (44px) remains sticky atleft-0to provide row numbering context with negligible space cost. Moved theborder-rseparator to the#column so the sticky boundary is still visually indicated.Generated by Claude Code