From c2247fc4a6e31c9e5498d1843f4f95501f240bcb Mon Sep 17 00:00:00 2001 From: NetworkCats Date: Sun, 22 Mar 2026 19:28:50 +0800 Subject: [PATCH] fix: add explicit line-height to ensure consistent layout across languages --- static/style.css | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/static/style.css b/static/style.css index d9a4394..25dc646 100644 --- a/static/style.css +++ b/static/style.css @@ -56,6 +56,7 @@ body { font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif; + line-height: 1.5; color: var(--color-label); background: var(--color-bg); accent-color: var(--color-blue); @@ -164,6 +165,7 @@ main { .ip-display { text-align: center; font-size: clamp(28px, 6vw, 42px); + line-height: 1.2; font-weight: 200; margin-block: 28px 20px; letter-spacing: -0.5px; @@ -199,6 +201,7 @@ main { padding-block: 10px; border-block-start: 1px solid var(--color-separator); font-size: 15px; + line-height: 1.5; vertical-align: top; overflow-wrap: break-word; } @@ -241,6 +244,7 @@ main { .faq-title { font-size: 22px; + line-height: 1.3; font-weight: 600; margin-block-end: 16px; } @@ -248,6 +252,7 @@ main { summary { padding-block: 12px; font-size: 15px; + line-height: 1.5; font-weight: 600; color: var(--color-label); cursor: pointer; @@ -354,6 +359,7 @@ main { border: 1px solid var(--color-red); color: var(--color-red); font-size: 15px; + line-height: 1.5; font-weight: 600; } @@ -372,6 +378,7 @@ main { .error-status { font-size: 20px; + line-height: 1.3; font-weight: 600; margin-block-start: 8px; color: var(--color-label); @@ -379,6 +386,7 @@ main { .error-detail { font-size: 15px; + line-height: 1.5; margin-block-start: 12px; color: var(--color-label-secondary); }