mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-11-29 04:14:30 +00:00
fix(webui): allow item selection when clicking editable text area
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user