Skip to content

fix(admin-servers): vertically align Server ID value with its label#1525

Merged
rumblefrog merged 1 commit into
mainfrom
fix/admin-servers-id-alignment
Jul 6, 2026
Merged

fix(admin-servers): vertically align Server ID value with its label#1525
rumblefrog merged 1 commit into
mainfrom
fix/admin-servers-id-alignment

Conversation

@rumblefrog

Copy link
Copy Markdown
Member

Summary

Follow-up to #1523.

#1523 added a labelled, copyable Server ID row to each admin server card. The row's <dd> is a flex container (display:flex;align-items:center) whose copy button (btn btn--ghost btn--icon btn--xs, 1.5rem tall) makes the row taller than a single line of text. Its sibling <dt> label inherited the <dl> grid's default align-items:stretch, so the label sat top-aligned while the button-driven value centered. The result: the numeric ID reads as dropped below its "Server ID" label instead of sitting inline with it.

This adds align-items:center to the card's inner <dl> grid in web/themes/default/page_admin_servers_list.tpl so every label/value pair lines up on the same vertical level.

  • Server ID row — label now lines up with the value + copy button.
  • Mod / Players / Map rows — single-line text of equal height, so center vs stretch is a visual no-op (no regression). Their hydrated cells (server-players / server-map) are patched with single-line textContent, so nothing multi-line is affected.

Template-only change: one inline-CSS property + an explanatory comment. No new Smarty variables, testids, or content, so it doesn't touch the SmartyTemplateRule (PHPStan) contract, AdminServersListHydrationTest (asserts testids/content), ts-check, or the admin-server-id.spec.ts render contract.

Test plan

  • Visual: open Admin Panel → Servers, confirm the Server ID value + copy button sit on the same vertical line as the "Server ID" label on both enabled and disabled cards.
  • Confirm Mod / Players / Map rows are unchanged.
  • Existing AdminServersListHydrationTest::testTileRendersCopyableServerId assertions (testids/value/copy payload/label) still hold — structure unchanged.

Follow-up to #1523. The Server ID row's <dd> is a flex container whose
copy button (btn--xs, 1.5rem) makes the row taller than one line of
text, while the sibling <dt> label inherited the grid's default
align-items:stretch and sat top-aligned, so the ID read as dropped
below its "Server ID" label. Add align-items:center to the card's inner
<dl> so every label/value pair lines up on the same vertical level; the
single-line Mod/Players/Map rows are unaffected (center vs stretch is a
no-op at equal height).
Copilot AI review requested due to automatic review settings July 6, 2026 21:32

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

@rumblefrog
rumblefrog added this pull request to the merge queue Jul 6, 2026
Merged via the queue into main with commit e3970ab Jul 6, 2026
5 of 6 checks passed
@rumblefrog
rumblefrog deleted the fix/admin-servers-id-alignment branch July 6, 2026 21:35
@github-actions github-actions Bot locked and limited conversation to collaborators Jul 6, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants