Skip to content

Commit 944cfb0

Browse files
committed
fix(admin-servers): vertically align Server ID value with its label
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).
1 parent 0ddfb14 commit 944cfb0

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

web/themes/default/page_admin_servers_list.tpl

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,16 @@
150150
{/if}
151151
</header>
152152

153-
<dl class="text-xs text-muted" style="margin:0;display:grid;grid-template-columns:auto 1fr;gap:0.25rem 0.5rem">
153+
{*
154+
align-items:center keeps each label/value pair on the
155+
same vertical line. The "Server ID" row's <dd> is a flex
156+
container whose copy button (btn--xs, 1.5rem) makes the
157+
row taller than a single line of text; without centering
158+
the grid, the <dt> label sits top-aligned while the
159+
button-driven <dd> content centres, so the ID reads as
160+
dropped below its label (#1523 follow-up).
161+
*}
162+
<dl class="text-xs text-muted" style="margin:0;display:grid;grid-template-columns:auto 1fr;align-items:center;gap:0.25rem 0.5rem">
154163
{*
155164
Server ID (#1504): the numeric sid the SourceMod
156165
plugin's sourcebans.cfg "ServerID" field needs.

0 commit comments

Comments
 (0)