diff --git a/client/src/components/Endpoints/EditPresetDialog.jsx b/client/src/components/Endpoints/EditPresetDialog.jsx index 72c7f48adf..d2f825bd4e 100644 --- a/client/src/components/Endpoints/EditPresetDialog.jsx +++ b/client/src/components/Endpoints/EditPresetDialog.jsx @@ -78,49 +78,51 @@ const EditPresetDialog = ({ open, onOpenChange, preset: _preset }) => { -
-
- - setOption('title')(e.target.value || '')} - placeholder="Set a custom name, in case you can find this preset" - className={cn( - defaultTextProps, - 'flex h-10 max-h-10 w-full resize-none px-3 py-2 focus:outline-none focus:ring-0 focus:ring-opacity-0 focus:ring-offset-0' - )} - /> -
-
- - + main={ +
+
+
+ + setOption('title')(e.target.value || '')} + placeholder="Set a custom name, in case you can find this preset" + className={cn( + defaultTextProps, + 'flex h-10 max-h-10 w-full resize-none px-3 py-2 focus:outline-none focus:ring-0 focus:ring-opacity-0 focus:ring-offset-0' + )} + /> +
+
+ + +
+
+
{renderSettings()}
-
-
{renderSettings()}
-
+ } selection={{ selectHandler: submitPreset, selectClasses: 'bg-green-600 hover:bg-green-700 dark:hover:bg-green-800 text-white', diff --git a/client/src/components/Endpoints/SaveAsPresetDialog.jsx b/client/src/components/Endpoints/SaveAsPresetDialog.jsx index a615919cec..7d663467e5 100644 --- a/client/src/components/Endpoints/SaveAsPresetDialog.jsx +++ b/client/src/components/Endpoints/SaveAsPresetDialog.jsx @@ -44,24 +44,26 @@ const SaveAsPresetDialog = ({ open, onOpenChange, conversation }) => { > - - setTitle(e.target.value || '')} - placeholder="Set a custom name, in case you can find this preset" - className={cn( - defaultTextProps, - 'flex h-10 max-h-10 w-full resize-none px-3 py-2 focus:outline-none focus:ring-0 focus:ring-opacity-0 focus:ring-offset-0' - )} - /> -
+ main={ +
+ + setTitle(e.target.value || '')} + placeholder="Set a custom name, in case you can find this preset" + className={cn( + defaultTextProps, + 'flex h-10 max-h-10 w-full resize-none px-3 py-2 focus:outline-none focus:ring-0 focus:ring-opacity-0 focus:ring-offset-0' + )} + /> +
+ } selection={{ selectHandler: submitPreset, selectClasses: 'bg-green-600 hover:bg-green-700 dark:hover:bg-green-800 text-white',