mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-23 06:46:40 +08:00
### What problem does this PR solve? Fix: Optimized the style and functionality of multiple components #3221 - Modified the SkeletonCard component, adding a className attribute and adjusting the style - Updated the RAGFlowSelect component, adding a disabled attribute - Adjusted the style of the Tooltip component - Optimized the layout of the RetrievalTesting and TestingResult pages - Updated the style and loading status display of NextSearch-related pages - Removed unnecessary logs from the Spotlight component ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
@ -224,6 +224,7 @@ export const RAGFlowSelect = forwardRef<
|
||||
allowClear,
|
||||
placeholder,
|
||||
contentProps = {},
|
||||
disabled = false,
|
||||
// defaultValue,
|
||||
triggerClassName,
|
||||
onlyShowSelectedIcon = false,
|
||||
@ -278,7 +279,12 @@ export const RAGFlowSelect = forwardRef<
|
||||
}, [onlyShowSelectedIcon, options, value]);
|
||||
|
||||
return (
|
||||
<Select onValueChange={handleChange} value={value} key={key}>
|
||||
<Select
|
||||
onValueChange={handleChange}
|
||||
value={value}
|
||||
key={key}
|
||||
disabled={disabled}
|
||||
>
|
||||
<FormControlWidget>
|
||||
<SelectTrigger
|
||||
value={value}
|
||||
|
||||
@ -107,7 +107,7 @@ export const AntToolTip: React.FC<AntToolTipProps> = ({
|
||||
{visible && title && (
|
||||
<div
|
||||
className={cn(
|
||||
'absolute z-50 px-2.5 py-1.5 text-xs text-white bg-gray-800 rounded-sm shadow-sm whitespace-nowrap',
|
||||
'absolute z-50 px-2.5 py-2 text-xs text-text-primary bg-muted rounded-sm shadow-sm whitespace-wrap',
|
||||
getPlacementClasses(),
|
||||
className,
|
||||
)}
|
||||
@ -115,7 +115,7 @@ export const AntToolTip: React.FC<AntToolTipProps> = ({
|
||||
{title}
|
||||
<div
|
||||
className={cn(
|
||||
'absolute w-2 h-2 bg-gray-800',
|
||||
'absolute w-2 h-2 bg-muted ',
|
||||
placement === 'top' &&
|
||||
'bottom-[-4px] left-1/2 transform -translate-x-1/2 rotate-45',
|
||||
placement === 'bottom' &&
|
||||
|
||||
Reference in New Issue
Block a user