fix(webui): show archive icon in front of version names and prevent version card overflow

This commit is contained in:
yiling
2026-11-02 22:00:13 +08:00
parent 64a3b226db
commit 39e969c3dd
4 changed files with 88 additions and 50 deletions
@@ -189,8 +189,11 @@ export function MobileFileHeader({
)}
>
<span>v{v.version}</span>
<span className="text-[11px] text-muted-foreground truncate max-w-[120px]">
{v.name || fileName}
<span className="text-[11px] text-muted-foreground truncate max-w-[120px] flex items-center gap-1">
{(v.status === 'archived' || v.status === 'restoring') && (
<Archive className="h-2.5 w-2.5 shrink-0 text-muted-foreground" />
)}
<span className="truncate">{v.name || fileName}</span>
</span>
</DropdownMenuItem>
))}