Skip to content

fix: Wider Server Tiles to Fit Waiting Badge#337

Draft
sahil-noon wants to merge 2 commits into
mainfrom
server-tile-badge-width
Draft

fix: Wider Server Tiles to Fit Waiting Badge#337
sahil-noon wants to merge 2 commits into
mainfrom
server-tile-badge-width

Conversation

@sahil-noon

@sahil-noon sahil-noon commented Jul 10, 2026

Copy link
Copy Markdown
Collaborator

Summary

When a server has waiting agents, the sidebar SERVER panel tile shows the yellow waiting-rollup badge on the same row as the "N sess" count. Two sizing problems: at the desktop grid's 72px tile floor the pair overflowed the padded content box, cramming the badge against the tile edge; and because the badge pill is taller than the count text, tiles (and their whole grid row) jumped in height every time an agent started or stopped waiting. This raises the desktop tile floor to 88px (matching the mobile column width) and reserves the badge's height in the count row permanently — tile dimensions are now constant whether or not the badge is visible.

Changes

  • server-panel.tsx — desktop grid minmax(72px, 1fr)minmax(88px, 1fr)
  • server-panel.tsx — count row gets a fixed h-4 (the badge pill's exact height), so badge appearance/disappearance no longer resizes the tile

Verified: tsc, 1071 unit tests, server-panel-grid e2e (5/5), and a live before/after measurement with an injected waiting state — tile bounding box is byte-identical (97.5×47.75) with and without the badge.

🤖 Generated with Claude Code

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