mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-11-29 20:34:28 +00:00
fix(webui): show archive icon in front of version names and prevent version card overflow
This commit is contained in:
@@ -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>
|
||||
))}
|
||||
|
||||
Reference in New Issue
Block a user