From 8090a7be24358239919c81dbf0eaa0713d73f513 Mon Sep 17 00:00:00 2001 From: Faisal Amir Date: Thu, 7 Nov 2024 13:04:39 +0700 Subject: [PATCH] fix: make input clickable for copying instead of just the copy icon (#3964) --- web/screens/LocalServer/LocalServerRightPanel/index.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/web/screens/LocalServer/LocalServerRightPanel/index.tsx b/web/screens/LocalServer/LocalServerRightPanel/index.tsx index fd7f19f5f9..8cb2af3507 100644 --- a/web/screens/LocalServer/LocalServerRightPanel/index.tsx +++ b/web/screens/LocalServer/LocalServerRightPanel/index.tsx @@ -97,6 +97,9 @@ const LocalServerRightPanel = () => { value={selectedModel?.id || ''} className="cursor-pointer text-[hsla(var(--text-secondary))]" readOnly + onClick={() => { + clipboard.copy(selectedModel?.id) + }} suffixIcon={ clipboard.copied ? ( { { - clipboard.copy(selectedModel?.id) - }} /> ) }