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.
This commit is contained in:
2026-11-01 19:25:24 +08:00
parent cfa3799250
commit 706ed6faf1
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -199,7 +199,7 @@ onBeforeUnmount(() => {
<td class="name-cell">
<div class="mirror-name-group">
<a class="mirror-name-button" :aria-label="t('mirrors.browse', { name: mirror.name })" :title="description(mirror)" :href="mirror.browseUrl">{{ mirror.name }}</a>
<button class="help-button" :aria-label="t('mirrors.helpFor', { name: mirror.name })" :title="t('mirrors.helpFor', { name: mirror.name })" @click="openModal('mirror', mirror)"><BookOpen :size="14" /></button>
<button v-if="mirror.help?.trim()" class="help-button" :aria-label="t('mirrors.helpFor', { name: mirror.name })" :title="t('mirrors.helpFor', { name: mirror.name })" @click="openModal('mirror', mirror)"><BookOpen :size="14" /></button>
</div>
</td>
<td class="time-cell" :title="fullTime(showNextSync ? mirror.nextSync : mirror.lastSuccess)"><RollingText :value="showNextSync ? tableNextTime(mirror) : relativeTime(mirror.lastSuccess)" :cycle="boardCycle" :candidates="timeCandidates" :reserve="[relativeTime(mirror.lastSuccess), tableNextTime(mirror)]" /></td>