fix(webui): allow item selection when clicking editable text area

This commit is contained in:
yiling
2026-06-11 15:52:35 +08:00
parent 6cf3979d6f
commit 4d0972391c
3 changed files with 16 additions and 10 deletions
@@ -212,9 +212,9 @@ export function FileCard({
}
}}
className={cn(
'group relative flex cursor-pointer select-none flex-col overflow-hidden rounded-xl border border-border bg-card transition-all hover:border-primary/50 h-full',
isSelected && 'ring-2 ring-primary',
showDropFeedback && 'border-primary ring-2 ring-primary',
'group relative flex cursor-pointer select-none flex-col overflow-hidden rounded-xl border border-border bg-card transition-all hover:border-primary h-full m-1',
isSelected && 'outline-1 outline-primary border-primary',
showDropFeedback && 'border-primary outline-1 outline-primary',
)}
>
<div className="absolute left-2 top-2 z-10">
@@ -240,7 +240,7 @@ export function FolderCard({
d={folderPath}
vectorEffect="non-scaling-stroke"
strokeLinejoin="round"
strokeWidth={showDropFeedback ? 3 : 1}
strokeWidth={showDropFeedback || isSelected ? 2 : 1}
className={cn(
'transition-colors duration-200 fill-none group-hover:stroke-primary stroke-foreground/10',
(isSelected || isChecked || showDropFeedback) && 'stroke-primary',