🐛 fix: 防止下载检测按钮和状态标签纵向换行

* 保持单文件检测按钮和状态标签单行,避免窄列挤成竖排
* 补充浏览器按钮高度与标签换行断言,关闭移动菜单后检查布局
This commit is contained in:
orion committed 2026-09-19 01:42:11 +08:00
1 parent 3d70f67cf7
commit f2e78986bc
3 files changed
+8 -3

No files matched your search

@@ -1,5 +1,5 @@
<template>
<div class="space-y-1" role="status">
<div class="shrink-0 whitespace-nowrap space-y-1" role="status">
<span class="inline-flex items-center rounded-full px-2 py-1 text-xs font-medium" :class="badgeClass">
<RefreshCw v-if="result.status === 'checking'" class="mr-1 h-3 w-3 animate-spin" />
{{ labels[result.status] }}
+2 -2
View File
@@ -385,7 +385,7 @@
</div>
<div class="mt-2 flex items-center justify-between gap-2">
<DownloadCheckStatus :result="downloadStatusFor(file.id)" :dark="isDarkMode" />
<BaseButton variant="outline" size="sm" :disabled="checkingDownloads" @click="checkDownloadIds([file.id])">检测可下载状态</BaseButton>
<BaseButton variant="outline" size="sm" class="shrink-0 whitespace-nowrap" :disabled="checkingDownloads" @click="checkDownloadIds([file.id])">检测可下载状态</BaseButton>
</div>
<div class="mt-2 grid grid-cols-2 gap-x-3 gap-y-1 text-xs" :class="[mutedTextClass]">
<span>{{ file.code }} · {{ file.displaySize }}</span>
@@ -722,7 +722,7 @@
<td class="px-6 py-4" :class="primaryTextClass">
<div class="flex items-center gap-2">
<DownloadCheckStatus :result="downloadStatusFor(file.id)" :dark="isDarkMode" />
<BaseButton variant="outline" size="sm" :disabled="checkingDownloads" @click="checkDownloadIds([file.id])">检测可下载状态</BaseButton>
<BaseButton variant="outline" size="sm" class="shrink-0 whitespace-nowrap" :disabled="checkingDownloads" @click="checkDownloadIds([file.id])">检测可下载状态</BaseButton>
</div>
</td>
<td class="px-6 py-4 whitespace-nowrap text-right text-sm font-medium">