fix: remove tooltip and update text color modelid API server page (#3959)
This commit is contained in:
parent
4445abfa05
commit
1f46c82ff7
@ -1,6 +1,6 @@
|
|||||||
import { useCallback, useEffect, useMemo, useState } from 'react'
|
import { useCallback, useEffect, useMemo, useState } from 'react'
|
||||||
|
|
||||||
import { Accordion, AccordionItem, Input, Tooltip } from '@janhq/joi'
|
import { Accordion, AccordionItem, Input } from '@janhq/joi'
|
||||||
import { useAtomValue, useSetAtom } from 'jotai'
|
import { useAtomValue, useSetAtom } from 'jotai'
|
||||||
import { AlertTriangleIcon, CheckIcon, CopyIcon, InfoIcon } from 'lucide-react'
|
import { AlertTriangleIcon, CheckIcon, CopyIcon, InfoIcon } from 'lucide-react'
|
||||||
|
|
||||||
@ -99,7 +99,7 @@ const LocalServerRightPanel = () => {
|
|||||||
<div className="mt-2">
|
<div className="mt-2">
|
||||||
<Input
|
<Input
|
||||||
value={selectedModel?.id || ''}
|
value={selectedModel?.id || ''}
|
||||||
className="cursor-pointer"
|
className="cursor-pointer text-[hsla(var(--text-secondary))]"
|
||||||
readOnly
|
readOnly
|
||||||
suffixIcon={
|
suffixIcon={
|
||||||
clipboard.copied ? (
|
clipboard.copied ? (
|
||||||
@ -108,17 +108,12 @@ const LocalServerRightPanel = () => {
|
|||||||
className="text-[hsla(var(--success-bg))]"
|
className="text-[hsla(var(--success-bg))]"
|
||||||
/>
|
/>
|
||||||
) : (
|
) : (
|
||||||
<Tooltip
|
<CopyIcon
|
||||||
trigger={
|
size={14}
|
||||||
<CopyIcon
|
className="cursor-pointer text-[hsla(var(--text-secondary))]"
|
||||||
size={14}
|
onClick={() => {
|
||||||
className="text-[hsla(var(--text-secondary))]"
|
clipboard.copy(selectedModel?.id)
|
||||||
onClick={() => {
|
}}
|
||||||
clipboard.copy(selectedModel?.id)
|
|
||||||
}}
|
|
||||||
/>
|
|
||||||
}
|
|
||||||
content="Copy Model ID"
|
|
||||||
/>
|
/>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user