From 83f9e965d8f7125f71b04f0832b735df02c9d63a Mon Sep 17 00:00:00 2001 From: NamH Date: Wed, 17 Apr 2024 15:57:19 +0700 Subject: [PATCH] fix: user cannot click on copy icon of model id (#2744) Signed-off-by: James Co-authored-by: James --- web/containers/DropdownListSidebar/index.tsx | 38 +++++++++++--------- 1 file changed, 22 insertions(+), 16 deletions(-) diff --git a/web/containers/DropdownListSidebar/index.tsx b/web/containers/DropdownListSidebar/index.tsx index 892535717..5bb3d29cb 100644 --- a/web/containers/DropdownListSidebar/index.tsx +++ b/web/containers/DropdownListSidebar/index.tsx @@ -202,7 +202,7 @@ const DropdownListSidebar = ({ @@ -278,21 +278,6 @@ const DropdownListSidebar = ({ )} >

{x.id}

- {clipboard.copied && copyId === x.id ? ( - - ) : ( - { - clipboard.copy(x.id) - setCopyId(x.id) - }} - /> - )}
@@ -305,6 +290,27 @@ const DropdownListSidebar = ({
+
+

+ {x.id} +

+ {clipboard.copied && copyId === x.id ? ( + + ) : ( + { + clipboard.copy(x.id) + setCopyId(x.id) + }} + /> + )} +
)) )}