Skip to content

Commit

Permalink
fix: remove tooltip and update text color modelid API server page
Browse files Browse the repository at this point in the history
  • Loading branch information
urmauur committed Nov 6, 2024
1 parent 1ad8977 commit d9e32d2
Showing 1 changed file with 8 additions and 13 deletions.
21 changes: 8 additions & 13 deletions web/screens/LocalServer/LocalServerRightPanel/index.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
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 { AlertTriangleIcon, CheckIcon, CopyIcon, InfoIcon } from 'lucide-react'

Expand Down Expand Up @@ -99,7 +99,7 @@ const LocalServerRightPanel = () => {
<div className="mt-2">
<Input
value={selectedModel?.id || ''}
className="cursor-pointer"
className="cursor-pointer text-[hsla(var(--text-secondary))]"
readOnly
suffixIcon={
clipboard.copied ? (
Expand All @@ -108,17 +108,12 @@ const LocalServerRightPanel = () => {
className="text-[hsla(var(--success-bg))]"
/>
) : (
<Tooltip
trigger={
<CopyIcon
size={14}
className="text-[hsla(var(--text-secondary))]"
onClick={() => {
clipboard.copy(selectedModel?.id)
}}
/>
}
content="Copy Model ID"
<CopyIcon
size={14}
className="cursor-pointer text-[hsla(var(--text-secondary))]"
onClick={() => {
clipboard.copy(selectedModel?.id)
}}
/>
)
}
Expand Down

0 comments on commit d9e32d2

Please sign in to comment.