|
|
@@ -23,6 +23,12 @@ import { useTranslation } from 'react-i18next'
|
|
|
import { MultiSelect, type Option } from '@/components/multi-select'
|
|
|
import { Button } from '@/components/ui/button'
|
|
|
import { Checkbox } from '@/components/ui/checkbox'
|
|
|
+import {
|
|
|
+ Tooltip,
|
|
|
+ TooltipContent,
|
|
|
+ TooltipProvider,
|
|
|
+ TooltipTrigger,
|
|
|
+} from '@/components/ui/tooltip'
|
|
|
import { cn } from '@/lib/utils'
|
|
|
|
|
|
// Model type from group API response
|
|
|
@@ -248,7 +254,7 @@ export function ApiKeyGroupCombobox({
|
|
|
disabled && 'pointer-events-none opacity-60'
|
|
|
)}
|
|
|
>
|
|
|
- <div className='flex items-start gap-3'>
|
|
|
+ <div className='flex min-w-0 items-start gap-3'>
|
|
|
<label className='flex min-w-0 flex-1 cursor-pointer items-start gap-3'>
|
|
|
<Checkbox
|
|
|
checked={checked}
|
|
|
@@ -261,9 +267,20 @@ export function ApiKeyGroupCombobox({
|
|
|
{option.label}
|
|
|
</span>
|
|
|
{option.desc && (
|
|
|
- <span className='text-muted-foreground block truncate text-xs'>
|
|
|
- {option.desc}
|
|
|
- </span>
|
|
|
+ <TooltipProvider>
|
|
|
+ <Tooltip>
|
|
|
+ <TooltipTrigger
|
|
|
+ render={
|
|
|
+ <span className='text-muted-foreground block truncate text-xs'>
|
|
|
+ {option.desc}
|
|
|
+ </span>
|
|
|
+ }
|
|
|
+ />
|
|
|
+ <TooltipContent className='max-w-sm whitespace-normal break-words'>
|
|
|
+ {option.desc}
|
|
|
+ </TooltipContent>
|
|
|
+ </Tooltip>
|
|
|
+ </TooltipProvider>
|
|
|
)}
|
|
|
</span>
|
|
|
</label>
|