fix: hide normal storage section status badge

This commit is contained in:
Junyan Qin
2026-05-02 17:38:40 +08:00
parent 8f1847d480
commit 832efb4069
9 changed files with 7 additions and 16 deletions
@@ -255,14 +255,13 @@ export default function StorageAnalysisDialog({
{section.path || '-'}
</div>
</div>
<Badge
variant={section.exists ? 'secondary' : 'outline'}
className="self-center"
>
{section.exists
? t('storageAnalysis.exists')
: t('storageAnalysis.missing')}
</Badge>
{section.exists ? (
<span />
) : (
<Badge variant="outline" className="self-center">
{t('storageAnalysis.missing')}
</Badge>
)}
<div className="self-center tabular-nums">
{formatBytes(section.size_bytes)}
</div>