Update storage-overview.tsx

This commit is contained in:
MacRimi
2025-11-10 17:45:40 +01:00
parent a65924799e
commit 1c800cbd8f

View File

@@ -514,9 +514,7 @@ export function StorageOverview() {
<Database className="h-4 w-4 text-muted-foreground" /> <Database className="h-4 w-4 text-muted-foreground" />
</CardHeader> </CardHeader>
<CardContent> <CardContent>
<div className={`text-xl lg:text-2xl font-bold ${getUsageColor(Number.parseFloat(localUsagePercent))}`}> <div className="text-xl lg:text-2xl font-bold">{formatStorage(totalLocalUsed)}</div>
{formatStorage(totalLocalUsed)}
</div>
<p className="text-xs mt-1"> <p className="text-xs mt-1">
<span className={getUsageColor(Number.parseFloat(localUsagePercent))}>{localUsagePercent}%</span> <span className={getUsageColor(Number.parseFloat(localUsagePercent))}>{localUsagePercent}%</span>
<span className="text-muted-foreground"> of </span> <span className="text-muted-foreground"> of </span>
@@ -531,9 +529,7 @@ export function StorageOverview() {
<Archive className="h-4 w-4 text-muted-foreground" /> <Archive className="h-4 w-4 text-muted-foreground" />
</CardHeader> </CardHeader>
<CardContent> <CardContent>
<div <div className="text-xl lg:text-2xl font-bold">
className={`text-xl lg:text-2xl font-bold ${remoteStorageCount > 0 ? getUsageColor(Number.parseFloat(remoteUsagePercent)) : ""}`}
>
{remoteStorageCount > 0 ? formatStorage(totalRemoteUsed) : "None"} {remoteStorageCount > 0 ? formatStorage(totalRemoteUsed) : "None"}
</div> </div>
<p className="text-xs mt-1"> <p className="text-xs mt-1">