-
- {currentTags?.map((tag: string, index: number) => (
-
{
- onTagRemove(index);
- if (inputRef.current) {
- inputRef.current.focus();
- }
- }}
- />
- ))}
+
+ {currentTags && currentTags.length > 0 && (
+
+ {currentTags.map((tag: string, index: number) => (
+ {
+ onTagRemove(index);
+ if (inputRef.current) {
+ inputRef.current.focus();
+ }
+ }}
+ />
+ ))}
+
+ )}
setTagText(e.target.value)}
placeholder={placeholderCode ? localize(placeholder) ?? placeholder : placeholder}
- className={cn(defaultTextProps, 'flex h-10 max-h-10 px-3 py-2')}
+ className={cn('flex h-10 max-h-10 border-none bg-surface-secondary px-3 py-2')}
/>
diff --git a/client/src/components/SidePanel/Parameters/DynamicTextarea.tsx b/client/src/components/SidePanel/Parameters/DynamicTextarea.tsx
index ddc10d684b..83fead36ed 100644
--- a/client/src/components/SidePanel/Parameters/DynamicTextarea.tsx
+++ b/client/src/components/SidePanel/Parameters/DynamicTextarea.tsx
@@ -1,4 +1,3 @@
-// client/src/components/SidePanel/Parameters/DynamicTextarea.tsx
import { OptionTypes } from 'librechat-data-provider';
import type { DynamicSettingProps } from 'librechat-data-provider';
import { Label, TextareaAutosize, HoverCard, HoverCardTrigger } from '~/components/ui';
@@ -78,9 +77,8 @@ function DynamicTextarea({
onChange={setInputValue}
placeholder={placeholderCode ? localize(placeholder) ?? placeholder : placeholder}
className={cn(
- defaultTextProps,
// TODO: configurable max height
- 'flex max-h-[138px] min-h-[100px] w-full resize-none px-3 py-2',
+ 'flex max-h-[138px] min-h-[100px] w-full resize-none rounded-lg bg-surface-secondary px-3 py-2 focus:outline-none',
)}
/>
diff --git a/client/src/components/SidePanel/Parameters/index.ts b/client/src/components/SidePanel/Parameters/index.ts
index d945367c6d..159a9f3787 100644
--- a/client/src/components/SidePanel/Parameters/index.ts
+++ b/client/src/components/SidePanel/Parameters/index.ts
@@ -1,4 +1,3 @@
-export { default as DynamicInputNumber } from './DynamicInputNumber';
export { default as DynamicCombobox } from './DynamicCombobox';
export { default as DynamicDropdown } from './DynamicDropdown';
export { default as DynamicCheckbox } from './DynamicCheckbox';
diff --git a/client/src/components/ui/HoverCard.tsx b/client/src/components/ui/HoverCard.tsx
index 3df6e905b7..5e973ed7bc 100644
--- a/client/src/components/ui/HoverCard.tsx
+++ b/client/src/components/ui/HoverCard.tsx
@@ -23,7 +23,7 @@ const HoverCardContent = React.forwardRef<
align={align}
sideOffset={sideOffset}
className={cn(
- 'z-50 w-64 rounded-md border border-gray-200 bg-white p-4 shadow-md outline-none animate-in fade-in-0 dark:border-gray-800 dark:bg-gray-800',
+ 'z-50 w-64 rounded-md border border-none bg-surface-tertiary p-4 shadow-md outline-none animate-in fade-in-0',
className,
)}
{...props}
diff --git a/client/src/components/ui/Slider.tsx b/client/src/components/ui/Slider.tsx
index 36b3831c59..69874801b4 100644
--- a/client/src/components/ui/Slider.tsx
+++ b/client/src/components/ui/Slider.tsx
@@ -4,19 +4,20 @@ import { cn } from '~/utils';
const Slider = React.forwardRef<
React.ElementRef
,
- React.ComponentPropsWithoutRef
->(({ className, ...props }, ref) => (
-
-
-
-
-
-
-));
+ React.ComponentPropsWithoutRef & { onDoubleClick?: () => void }
+ >(({ className, onDoubleClick, ...props }, ref) => (
+
+
+
+
+
+
+ ));
Slider.displayName = SliderPrimitive.Root.displayName;
export { Slider };
diff --git a/client/src/hooks/Conversations/useParameterEffects.ts b/client/src/hooks/Conversations/useParameterEffects.ts
index ad45f52238..a39113342e 100644
--- a/client/src/hooks/Conversations/useParameterEffects.ts
+++ b/client/src/hooks/Conversations/useParameterEffects.ts
@@ -1,5 +1,5 @@
import { useEffect, useRef } from 'react';
-import type { DynamicSettingProps, TConversation, TPreset } from 'librechat-data-provider';
+import type { DynamicSettingProps, TPreset } from 'librechat-data-provider';
import { defaultDebouncedDelay } from '~/common';
function useParameterEffects({
@@ -10,9 +10,8 @@ function useParameterEffects({
inputValue,
setInputValue,
preventDelayedUpdate = false,
-}: Pick & {
+}: Pick & {
preset: TPreset | null;
- conversation?: TConversation | TPreset | null;
inputValue: T;
setInputValue: (inputValue: T) => void;
preventDelayedUpdate?: boolean;