fix: CycleTransferStats bar overflow

This commit is contained in:
hamster1963 2024-12-01 00:51:23 +08:00
parent 1970248ae6
commit 7e259f22de

View File

@ -58,7 +58,7 @@ export const CycleTransferStatsClient: React.FC<
/> />
</div> </div>
</section> </section>
<div className="w-full bg-neutral-200 dark:bg-neutral-800 rounded-full h-2.5"> <div className="w-full bg-neutral-200 dark:bg-neutral-800 rounded-full overflow-hidden h-2.5">
<div <div
className="bg-blue-600 h-2.5 rounded-full" className="bg-blue-600 h-2.5 rounded-full"
style={{ width: `${Math.min(progress, 100)}%` }} style={{ width: `${Math.min(progress, 100)}%` }}