From 706ed6faf1ea402acdc8e2732cb28dc503f453ec Mon Sep 17 00:00:00 2001 From: yaosanqi137 Date: Sun, 1 Nov 2026 19:25:24 +0800 Subject: [PATCH] fix: align mirror names and hide unavailable help Center mirror names vertically and increase their font size on desktop and mobile. Only render the help button when the mirror has non-empty help content. --- src/App.vue | 2 +- src/style.css | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/App.vue b/src/App.vue index c165782..5bfe1ba 100644 --- a/src/App.vue +++ b/src/App.vue @@ -199,7 +199,7 @@ onBeforeUnmount(() => {
{{ mirror.name }} - +
diff --git a/src/style.css b/src/style.css index faa2113..1b1b29b 100644 --- a/src/style.css +++ b/src/style.css @@ -95,7 +95,7 @@ h2 { margin: 0; font-size: 19px; font-weight: 600; letter-spacing: -.04em; } .mirror-table tbody tr[data-status='syncing'] { background: var(--blue-soft); } .mirror-table tbody tr[data-status='failed'] { background: var(--red-soft); } .mirror-name-group { display: flex; align-items: center; gap: 8px; min-width: 0; } -.mirror-name-button { min-width: 0; min-height: 36px; padding: 0; color: var(--blue); font: 600 14px ui-monospace, 'Cascadia Code', Consolas, monospace; text-align: left; overflow-wrap: anywhere; } +.mirror-name-button { display: inline-flex; align-items: center; min-width: 0; min-height: 36px; padding: 0; color: var(--blue); font: 600 16px/1.5 ui-monospace, 'Cascadia Code', Consolas, monospace; text-align: left; overflow-wrap: anywhere; } .mirror-name-button:hover { text-decoration: underline; text-underline-offset: 3px; } .distro-mark { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 31px; height: 31px; border: 1px solid color-mix(in srgb, var(--distro-color) 31%, var(--line)); border-radius: 7px; background: color-mix(in srgb, var(--distro-color) 10%, var(--panel)); color: var(--distro-color); font-family: ui-monospace, 'Cascadia Code', Consolas, monospace; font-size: 14px; font-weight: 500; } .status-chip { display: inline-flex; align-items: center; gap: 6px; min-width: 72px; color: var(--ink-2); font-size: 11px; white-space: nowrap; } @@ -208,7 +208,7 @@ h2 { margin: 0; font-size: 19px; font-weight: 600; letter-spacing: -.04em; } .mirror-table td { height: 48px; padding: 5px 4px; font-size: 12px; } .mirror-table th:first-child { width: 44%; } .mirror-table th:nth-child(2), .mirror-table th:nth-child(3) { width: 28%; } - .mirror-name-button { min-height: 44px; font-size: 12px; } + .mirror-name-button { min-height: 44px; font-size: 14px; } .mirror-name-group .help-button { display: none; } .mirror-table .time-cell { line-height: 1.5; } .sidebar { display: flex; align-items: stretch; gap: 20px; }