Skip to content

Fix table column alignment and center downloads header#66

Merged
dsherret merged 1 commit into
mainfrom
fix-table-column-alignment
Jun 28, 2026
Merged

Fix table column alignment and center downloads header#66
dsherret merged 1 commit into
mainfrom
fix-table-column-alignment

Conversation

@dsherret

Copy link
Copy Markdown
Member

Problems

Two layout issues on the plugins table:

  1. Latest URL column not aligned — the URLs drifted left/right from row to row and didn't line up with the "Latest URL" header.
  2. Downloads (30d) header not centered — it was offset rather than centered above the download counts.

Cause

.plugin-table-head and each .plugin-row were separate CSS grids using content-dependent track sizing (max-content/auto), so every row computed its own column widths independently.

Fix

Make the head and rows subgrids of a single .plugin-table grid so they share one set of column widths, and center the downloads column. The shared grid is dropped back to display: block at the mobile breakpoint so the desktop column minimums don't force horizontal overflow on narrow screens.

Verified on desktop and mobile widths.

The table head and each plugin row were separate CSS grids using
content-dependent track sizing (max-content/auto), so each row computed
its own column widths. This caused the Latest URL column to drift out of
alignment from row to row (and from its header), and left the
Downloads (30d) header offset rather than centered over the counts.

Make the head and rows subgrids of a single table grid so they share one
set of column widths, and center the downloads column. The shared grid is
dropped back to a block at the mobile breakpoint so the desktop column
minimums don't force horizontal overflow on narrow screens.
@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
dprint-plugins 7d30074 Commit Preview URL

Branch Preview URL
Jun 28 2026, 10:36 PM

@dsherret dsherret added this pull request to the merge queue Jun 28, 2026
Merged via the queue into main with commit d237eee Jun 28, 2026
2 checks passed
@dsherret dsherret deleted the fix-table-column-alignment branch June 28, 2026 22:37
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