Skip to content

Fix sticky column bleed-through when scrolling table on mobile - #25

Open
KonstantinMB wants to merge 2 commits into
masterfrom
fix/database-mobile-responsive
Open

Fix sticky column bleed-through when scrolling table on mobile#25
KonstantinMB wants to merge 2 commits into
masterfrom
fix/database-mobile-responsive

Conversation

@KonstantinMB

Copy link
Copy Markdown
Owner

Summary

Two bugs introduced in PR #23 caused content from scrolling columns to visually bleed through the sticky # and Company columns when scrolling horizontally on mobile.

Root cause 1 (alternating row bug — primary): Sticky <td> cells on odd rows were given bg-muted/5 (5% opacity), making them nearly transparent. Scrolling columns were passing behind the sticky column as intended, but showing through the transparent cell background. Every other row appeared broken. Fixed by reverting sticky cells to always use bg-background (fully opaque).

Root cause 2 (header): Sticky <th> cells used bg-muted/30 (30% opacity), same class as the header row tint. Changed to bg-background so the sticky header cells are also fully opaque when other header cells scroll under them.

Root cause 3 (table compression): Removing the table minWidth in PR #23 left only w-full, which forced the table to 343px on mobile. table-layout: auto ignores cell-level minWidth hints when the table is width-constrained, compressing all columns. Fixed with minWidth: 'max-content' — table is at least as wide as its visible columns require (~942px on mobile, ~1400px on desktop), while still filling wider containers via w-full.

Visual polish: Added a subtle border-r border-border/40 to the Company column to visually delineate the sticky area from the scrolling content.


Generated by Claude Code

claude added 2 commits July 2, 2026 19:43
- Add overflow-x-hidden to page root to prevent page-level horizontal scroll
- Restructure filter bar so search occupies full row on mobile, selects wrap below (sm+ stays single row)
- Remove hardcoded minWidth 1400px from table; column-level minWidths drive width, enabling mobile column hiding
- Hide 9 low-priority columns (subindustry, location, team, stage, nonprofit, last round, employees, 6m growth, website) on mobile (< md); all 18 visible at md+
- Fix sticky column backgrounds to match alternating row color (bg-muted/5 vs bg-background)
- Hide "Showing X–Y of N" text on mobile to prevent pagination bar crowding; Prev/Next always visible

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013XsZSM7E8ShnL5hohYaLWu
Two bugs from PR #23 caused content from scrolling columns to show
through the sticky # and Company columns:

1. Sticky td cells on odd rows used bg-muted/5 (5% opacity), making
   them nearly transparent. Scrolling columns bled through every
   alternating row — now always bg-background (fully opaque).

2. Sticky th cells used bg-muted/30 (30% opacity). Changed to
   bg-background so the header sticky column is also fully opaque.

3. Restored minWidth: max-content on the table element. Without it,
   w-full compressed all columns into the 343px mobile viewport
   (table-layout: auto ignores cell-level minWidth when the table is
   width-constrained). max-content lets the table be as wide as its
   visible columns require (~942px on mobile with 9 hidden columns).

Added a subtle border-r on the Company column to visually separate
the sticky area from the scrolling columns.

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:33am

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