Skip to content

fix(deployments): align version/status/compute badges in worker deployments table#3489

Merged
bilal-karim merged 1 commit into
mainfrom
fix/deployment-badge-alignment
Jun 5, 2026
Merged

fix(deployments): align version/status/compute badges in worker deployments table#3489
bilal-karim merged 1 commit into
mainfrom
fix/deployment-badge-alignment

Conversation

@bilal-karim
Copy link
Copy Markdown
Member

@bilal-karim bilal-karim commented Jun 2, 2026

Problem

On the worker deployments page, the Latest Version (Build ID) cell lays out the version link, status badge, and compute badge in a flex row with no width constraints. Because the version text (v0.0.1-runbook vs 1.0.0) and the status text (Current vs Drained vs Created) have different widths, every badge starts at a different x-position from row to row, so the column reads as ragged. The compute provider badge was also taller than the status badge, adding vertical inconsistency.

Fix

Give the two left-hand items consistent widths so the items after them always start at the same x, and align the badge heights:

  • Pin the version link to a min-width via Copyable's container-class (min-w-32 shrink-0).
  • Give the status badge a min-width with centered content (min-w-24 justify-center).
  • Drop the compute badge's larger padding and text-sm (px-2 py-0.5 text-smpx-1) so it matches the status badge height.

Now each row resolves to the same three positions — version → status → compute badge — so they line up as columns of equal height. Using min-w rather than a fixed width keeps the common case aligned while letting an unusually long build ID grow its own cell gracefully instead of overflowing into the status badge.

Before / After

Before After
before after

The screenshots are rendered from a standalone harness that reuses the exact markup and Tailwind classes from deployment-table-row.svelte, deployment-status.svelte, and compute-badge.svelte, toggled only by the styling change.

Testing

  • pnpm lint — clean (pre-commit lint-staged also ran eslint/prettier/stylelint).
  • pnpm check — no new errors in the changed files.

🤖 Generated with Claude Code

@bilal-karim bilal-karim requested a review from a team as a code owner June 2, 2026 16:08
@vercel
Copy link
Copy Markdown

vercel Bot commented Jun 2, 2026

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

Project Deployment Actions Updated (UTC)
holocene Ready Ready Preview, Comment Jun 2, 2026 4:19pm

Request Review

…yments table

The "Latest Version (Build ID)" cell laid out the version link, status
badge, and compute badge in a flex row with no width constraints, so
varying version and status text widths pushed the badges to different
x-positions on every row, making the column look ragged. The compute
provider badge was also taller than the status badge.

Give the version link a min-width (min-w-32) and the status badge a
min-width with centered content (min-w-24 justify-center) so the three
items snap to consistent columns across rows. min-w (rather than a fixed
width) lets an unusually long build ID grow its own cell gracefully
instead of overflowing into the badge. Drop the compute badge's larger
padding and text-sm so it matches the status badge height.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@bilal-karim bilal-karim merged commit af6b12a into main Jun 5, 2026
20 checks passed
@bilal-karim bilal-karim deleted the fix/deployment-badge-alignment branch June 5, 2026 18:18
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