fix: 修复日志页面自动滚动问题 (#382)

This commit is contained in:
ᴀᴍᴛᴏᴀᴇʀ
2025-07-09 23:34:50 +08:00
committed by GitHub
parent ce60838244
commit 74a45526f0
13 changed files with 43 additions and 35 deletions
+5 -5
View File
@@ -33,11 +33,11 @@
function getSegmentColor(status: number): string {
if (status === 7) {
return 'bg-emerald-500'; // 恢复更高对比度的绿色
return 'bg-emerald-500';
} else if (status === 0) {
return 'bg-slate-400'; // 恢复更清晰的灰色 - 未开始
return 'bg-yellow-500';
} else {
return 'bg-rose-500'; // 恢复更清晰的红色 - 失败
return 'bg-rose-500';
}
}
@@ -50,7 +50,7 @@
const failed = downloadStatus.filter((status) => status !== 7 && status !== 0).length;
if (completed === total) {
return { text: '完成', color: 'outline' }; // 更简洁的文案
return { text: '完成', color: 'outline' };
} else if (failed > 0) {
return { text: '失败', color: 'destructive' };
} else {
@@ -136,7 +136,7 @@
<div
class="h-1.5 w-full cursor-help rounded-full transition-all {getSegmentColor(
status
)} hover:opacity-80"
)}"
></div>
</Tooltip.Trigger>
<Tooltip.Content>