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 || ''}
|
value={selectedModel?.id || ''}
|
||||||
className="cursor-pointer text-[hsla(var(--text-secondary))]"
|
className="cursor-pointer text-[hsla(var(--text-secondary))]"
|
||||||
readOnly
|
readOnly
|
||||||
|
onClick={() => {
|
||||||
|
clipboard.copy(selectedModel?.id)
|
||||||
|
}}
|
||||||
suffixIcon={
|
suffixIcon={
|
||||||
clipboard.copied ? (
|
clipboard.copied ? (
|
||||||
<CheckIcon
|
<CheckIcon
|
||||||
@ -107,9 +110,6 @@ const LocalServerRightPanel = () => {
|
|||||||
<CopyIcon
|
<CopyIcon
|
||||||
size={14}
|
size={14}
|
||||||
className="cursor-pointer text-[hsla(var(--text-secondary))]"
|
className="cursor-pointer text-[hsla(var(--text-secondary))]"
|
||||||
onClick={() => {
|
|
||||||
clipboard.copy(selectedModel?.id)
|
|
||||||
}}
|
|
||||||
/>
|
/>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user