mirror of
https://github.com/MacRimi/ProxMenux.git
synced 2025-11-18 11:36:17 +00:00
Update storage-overview.tsx
This commit is contained in:
@@ -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">
|
||||||
|
|||||||
Reference in New Issue
Block a user