fix: user cannot click on copy icon of model id (#2744)
Signed-off-by: James <james@jan.ai> Co-authored-by: James <james@jan.ai>
This commit is contained in:
parent
af9a35110b
commit
83f9e965d8
@ -202,7 +202,7 @@ const DropdownListSidebar = ({
|
|||||||
<SelectPortal>
|
<SelectPortal>
|
||||||
<SelectContent
|
<SelectContent
|
||||||
className={twMerge(
|
className={twMerge(
|
||||||
'right-2 block w-full min-w-[450px] pr-0',
|
'right-2 block w-full min-w-[450px] pr-0',
|
||||||
isTabActive === 1 && '[&_.select-scroll-down-button]:hidden'
|
isTabActive === 1 && '[&_.select-scroll-down-button]:hidden'
|
||||||
)}
|
)}
|
||||||
>
|
>
|
||||||
@ -278,21 +278,6 @@ const DropdownListSidebar = ({
|
|||||||
)}
|
)}
|
||||||
>
|
>
|
||||||
<p className="line-clamp-2 text-xs">{x.id}</p>
|
<p className="line-clamp-2 text-xs">{x.id}</p>
|
||||||
{clipboard.copied && copyId === x.id ? (
|
|
||||||
<CheckIcon
|
|
||||||
size={16}
|
|
||||||
className="flex-shrink-0 text-green-600"
|
|
||||||
/>
|
|
||||||
) : (
|
|
||||||
<CopyIcon
|
|
||||||
size={16}
|
|
||||||
className="z-20 flex-shrink-0 cursor-pointer"
|
|
||||||
onClick={() => {
|
|
||||||
clipboard.copy(x.id)
|
|
||||||
setCopyId(x.id)
|
|
||||||
}}
|
|
||||||
/>
|
|
||||||
)}
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div className="flex-shrink-0 space-x-2">
|
<div className="flex-shrink-0 space-x-2">
|
||||||
@ -305,6 +290,27 @@ const DropdownListSidebar = ({
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</SelectItem>
|
</SelectItem>
|
||||||
|
<div
|
||||||
|
className={twMerge(
|
||||||
|
'absolute -mt-6 ml-4 flex max-w-[200px] items-center space-x-2 text-muted-foreground'
|
||||||
|
)}
|
||||||
|
>
|
||||||
|
<p className="line-clamp-1 flex-1 text-xs text-transparent">
|
||||||
|
{x.id}
|
||||||
|
</p>
|
||||||
|
{clipboard.copied && copyId === x.id ? (
|
||||||
|
<CheckIcon size={16} className="text-green-600" />
|
||||||
|
) : (
|
||||||
|
<CopyIcon
|
||||||
|
size={16}
|
||||||
|
className="z-20 cursor-pointer"
|
||||||
|
onClick={() => {
|
||||||
|
clipboard.copy(x.id)
|
||||||
|
setCopyId(x.id)
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
)}
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
))
|
))
|
||||||
)}
|
)}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user