Skip to content

fix(dashboard): stop the Member column swallowing the Member × Month grid - #51

Merged
parameshjava merged 1 commit into
mainfrom
fix/member-month-matrix-alias-widths
Aug 9, 2026
Merged

fix(dashboard): stop the Member column swallowing the Member × Month grid#51
parameshjava merged 1 commit into
mainfrom
fix/member-month-matrix-alias-widths

Conversation

@parameshjava

Copy link
Copy Markdown
Owner

The Member column carried width: 100% and acted as the deliberate slack sink (#48/#49). That read fine while every label was a full name — the months hugged their digits and the names took the rest. Aliases cut the content to a few characters, but the 100% kept soaking up every spare pixel, so names sat against a vast empty gap with the twelve months huddled off to the right.

Fix

Size the column to its content — width: 1px with the existing 9.5rem floor, the shrink-to-fit idiom under table-layout: auto — and let the months become the auto-width columns that share the slack. They end up evenly spread, so the grid reads as one matrix.

Verified

Rendered in headless Chrome against a static reproduction of the table (same markup, table-layout: auto, same per-column width rules), because the real page needs a database:

State Result
Short aliases (today) Column collapses to the longest alias; months evenly spread
No aliases yet — full names Column re-widens to fit Thummalapalli Guru Prasanna Lakshmi in full, no truncation
Mixed aliases + full names Sizes to the longest label present
Phone (390px) Floor holds at 9.5rem, table scrolls — the behaviour a4795bb set out to get

Two alternatives were rendered and rejected: giving the months a fixed percentage, and capping them at 4.5rem. Both strand a dead gap between DEC and TOTAL.

385 tests, typecheck, lint and build pass.

🤖 Generated with Claude Code

…grid

The column carried `width: 100%` and acted as the slack sink, which read
fine while every label was a full name: the months hugged their digits
and the names took the rest. Aliases cut the content to a few characters
but the 100% kept soaking up every spare pixel, so the names sat against
a vast empty gap with the twelve months huddled off to the right.

Size it to content instead — `width: 1px` with the existing 9.5rem floor,
the shrink-to-fit idiom under `table-layout: auto` — and let the months
become the auto-width columns that share the slack. They end up evenly
spread, so the grid reads as one matrix.

Self-correcting across the states that matter: short aliases give a
narrow column, a member still on their full name widens it back (no
truncation, verified against "Thummalapalli Guru Prasanna Lakshmi"), and
on a phone the floor holds the column at 9.5rem and the table scrolls,
which is the behaviour a4795bb set out to get.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@vercel

vercel Bot commented Aug 9, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
aits-fcf-tracker Ready Ready Preview Aug 9, 2026 9:22am

@parameshjava
parameshjava merged commit 9c553a4 into main Aug 9, 2026
3 checks passed
@parameshjava
parameshjava deleted the fix/member-month-matrix-alias-widths branch August 9, 2026 09:38
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