Skip to content

Commit

Permalink
fix: make input clickable for copying instead of just the copy icon (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
urmauur authored Nov 7, 2024
1 parent 0e65379 commit 8090a7b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions web/screens/LocalServer/LocalServerRightPanel/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 ? (
<CheckIcon
Expand All @@ -107,9 +110,6 @@ const LocalServerRightPanel = () => {
<CopyIcon
size={14}
className="cursor-pointer text-[hsla(var(--text-secondary))]"
onClick={() => {
clipboard.copy(selectedModel?.id)
}}
/>
)
}
Expand Down

0 comments on commit 8090a7b

Please sign in to comment.