chore: small code style changes

This commit is contained in:
Nicolas Meienberger 2025-12-22 19:35:10 +01:00
parent 91e76ec902
commit 01f247c9a0

View file

@ -459,7 +459,7 @@ const File = memo(({ file, onFileSelect, selected, withCheckbox, checked, onChec
<Checkbox checked={checked} onCheckedChange={handleCheckboxChange} onClick={(e) => e.stopPropagation()} /> <Checkbox checked={checked} onCheckedChange={handleCheckboxChange} onClick={(e) => e.stopPropagation()} />
)} )}
<span className="truncate">{name}</span> <span className="truncate">{name}</span>
{size != null && ( {typeof size === "number" && (
<span className="ml-auto shrink-0 text-xs text-muted-foreground"> <span className="ml-auto shrink-0 text-xs text-muted-foreground">
<ByteSize bytes={size} /> <ByteSize bytes={size} />
</span> </span>
@ -532,7 +532,7 @@ function buildFileList(files: FileEntry[], foldersOnly = false): Node[] {
name, name,
fullPath: file.path, fullPath: file.path,
depth, depth,
...(isFile && file.size != null ? { size: file.size } : {}), size: file.size,
}); });
} }
} }