Skip to content

Make Company column scrollable on mobile; only # stays sticky - #27

Open
KonstantinMB wants to merge 2 commits into
masterfrom
fix/sticky-columns-bleed-through
Open

Make Company column scrollable on mobile; only # stays sticky#27
KonstantinMB wants to merge 2 commits into
masterfrom
fix/sticky-columns-bleed-through

Conversation

@KonstantinMB

Copy link
Copy Markdown
Owner

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 at left-0 to provide row numbering context with negligible space cost. Moved the border-r separator to the # column so the sticky boundary is still visually indicated.


Generated by Claude Code

claude added 2 commits July 3, 2026 06:34
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
@vercel

vercel Bot commented Jul 3, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
exploreyc Ready Ready Preview, Comment Jul 3, 2026 6:59am

Request Review

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