优化编辑资源标签样式

This commit is contained in:
2025-05-12 22:16:34 +08:00
parent d2097e0123
commit 177bafe48b
2 changed files with 2 additions and 2 deletions

View File

@@ -23,7 +23,7 @@ export function ResourceBadge({ tag, editMode, onClose, ...props }: ResourceBadg
}}
{...props}
>
<span>{tag.name}</span>
<span className="text-nowrap">{tag.name}</span>
{
editMode && (
<span onClick={() => onClose?.(tag.name)}><X className="w-3 h-3 text-zinc-800 cursor-pointer" /></span>