mirror of
https://github.com/amtoaer/bili-sync.git
synced 2026-09-07 08:27:21 +08:00
fix: 修复日志页面自动滚动问题 (#382)
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user