fix: make input clickable for copying instead of just the copy icon (#3964)
This commit is contained in:
parent
0e653793eb
commit
8090a7be24
@ -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)
|
||||
}}
|
||||
/>
|
||||
)
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user