Skip to content

fix: Compact density is visible -- 2px row padding, perceptibility pinned - #235

Merged
alicoding merged 1 commit into
mainfrom
density-perceptible
Aug 18, 2026
Merged

fix: Compact density is visible -- 2px row padding, perceptibility pinned#235
alicoding merged 1 commit into
mainfrom
density-perceptible

Conversation

@alicoding

Copy link
Copy Markdown
Owner

Live dogfood report: the density setting "doesn't seem to do anything." Root cause wasn't wiring — the chain (root attribute → CSS var → Primer's row-padding token) worked end to end — the lever was just imperceptible: 6px→4px per row. Compact now cuts row padding to 2px (~8px height reclaimed per row; ~2 extra rows per viewport on the Workflows list, screenshot-verified), the 44px mobile touch floor unchanged. The e2e gains a perceptibility floor (compact must reclaim ≥6px per row) so an invisible density mode can never pass green again — the same "green but visually wrong" class the testing rules name.

🤖 Generated with Claude Code

https://claude.ai/code/session_01FW5GkkAG8du7tNdYLk2zSd

…nned

The mechanism worked (root attribute -> CSS var -> Primer's own
row-padding token) but the lever was homeopathic: 6px->4px per row is
under the eye's threshold, which read as the setting doing nothing.
Compact now cuts to 2px (8px of height back per row -- clearly
legible across any list; the 44px companion-breakpoint floor still
wins). The e2e previously asserted only 'smaller than comfortable',
green at any imperceptible delta -- it now pins a >=6px per-row
reclaim so an invisible density mode can never ship green again.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FW5GkkAG8du7tNdYLk2zSd
@alicoding
alicoding enabled auto-merge (squash) August 18, 2026 13:34
@alicoding
alicoding merged commit 813fdac into main Aug 18, 2026
26 of 27 checks passed
@alicoding
alicoding deleted the density-perceptible branch August 18, 2026 13:42
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