Skip to content

Dashboard: bias content to top with a small capped gap#96

Merged
kavehtoyser merged 1 commit into
developfrom
dashboard-top-bias-gap
Jun 29, 2026
Merged

Dashboard: bias content to top with a small capped gap#96
kavehtoyser merged 1 commit into
developfrom
dashboard-top-bias-gap

Conversation

@kavehtoyser

Copy link
Copy Markdown
Collaborator

Problem

PR #94 vertically centered the dashboard grid (.grid { margin-block:auto }) inside a full-viewport .page. With only a few short service rows, the panels float to mid-screen, leaving a large empty band above them on tall monitors (reported from the live server).

Fix

Replace the full-height centering with a small, capped top gap and let the remaining viewport slack fall below:

  • .grid: drop margin-block:auto; add margin-top: clamp(0.5rem, 5vh, 2.5rem).
  • .page keeps min-height:calc(100vh - 4rem) + box-sizing:border-box + flex column.

Content now sits just below the banner with a small, intentional gap (not glued, not centered). Guard test test_dashboard_grid_widens_services_and_fills_viewport updated to assert no margin-block:auto and a margin-top:clamp( gap.

Verification

20/20 test_ui_redesign.py pass; black + flake8 clean.

🤖 Generated with Claude Code

PR #94 vertically centered the grid (margin-block:auto), which floated a few
short service rows to mid-screen and left a large empty band above the panels
on tall monitors. Replace the full-height centering with a small, capped top
gap (margin-top: clamp(0.5rem, 5vh, 2.5rem)); the remaining viewport slack
falls below. Guard test updated accordingly.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@kavehtoyser kavehtoyser force-pushed the dashboard-top-bias-gap branch from 7a1dda2 to 16cd87b Compare June 29, 2026 19:50
@kavehtoyser kavehtoyser merged commit fe71930 into develop Jun 29, 2026
8 checks passed
@kavehtoyser kavehtoyser deleted the dashboard-top-bias-gap branch June 29, 2026 20:03
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