From 4a461cbd9217fe06d9dd98ffc04e2d459b239e84 Mon Sep 17 00:00:00 2001 From: NetworkCats Date: Thu, 5 Mar 2026 01:54:27 +0800 Subject: [PATCH] fix: anchor search icon to input height to prevent misalignment on error --- static/style.css | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/static/style.css b/static/style.css index ded02e9..2c26cd6 100644 --- a/static/style.css +++ b/static/style.css @@ -92,8 +92,9 @@ main { .search-icon { position: absolute; inset-inline-start: 12px; - inset-block-start: 50%; - translate: 0 -50%; + inset-block-start: 0; + block-size: 38px; + line-height: 38px; color: var(--color-label-tertiary); font-size: 14px; pointer-events: none; @@ -436,6 +437,11 @@ main { block-size: 44px; } + .search-form .search-icon { + block-size: 44px; + line-height: 44px; + } + .ip-display { margin-block: 20px 16px; }