fix: make input clickable for copying instead of just the copy icon (#3964)

This commit is contained in:
Faisal Amir 2024-11-07 13:04:39 +07:00 committed by GitHub
parent 0e653793eb
commit 8090a7be24
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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
@ -107,9 +110,6 @@ const LocalServerRightPanel = () => {
<CopyIcon
size={14}
className="cursor-pointer text-[hsla(var(--text-secondary))]"
onClick={() => {
clipboard.copy(selectedModel?.id)
}}
/>
)
}