From ab5c81d0633a660e81d6c34881abc8769da3d6b6 Mon Sep 17 00:00:00 2001
From: Marco Beretta <81851188+Berry-13@users.noreply.github.com>
Date: Sat, 18 Nov 2023 22:45:51 +0100
Subject: [PATCH] style: Beta UI fixes (#1199)
* fix(EditPresetDialog) endpoint menu
* style: update anthropic's icon & removed hover:bg in PresetItems
* style(OptionsPopover) rounded SaveAsPreset
* style(PresetItems) removed hover:bg
* style(NavLinks) match to openai
* style(NavLinks)
* fix(EditPresetDialog): remove empty cn call
---------
Co-authored-by: Danny Avila <110412045+danny-avila@users.noreply.github.com>
---
.../components/Chat/Input/OptionsPopover.tsx | 2 +-
.../Chat/Menus/Presets/EditPresetDialog.tsx | 7 +-----
.../Chat/Menus/Presets/PresetItems.tsx | 4 ++--
.../src/components/Endpoints/MinimalIcon.tsx | 8 +++----
client/src/components/Nav/NavLinks.tsx | 22 ++++++++-----------
5 files changed, 17 insertions(+), 26 deletions(-)
diff --git a/client/src/components/Chat/Input/OptionsPopover.tsx b/client/src/components/Chat/Input/OptionsPopover.tsx
index c20c5fa325..67c8d940b1 100644
--- a/client/src/components/Chat/Input/OptionsPopover.tsx
+++ b/client/src/components/Chat/Input/OptionsPopover.tsx
@@ -63,7 +63,7 @@ export default function OptionsPopover({
diff --git a/client/src/components/Chat/Menus/Presets/PresetItems.tsx b/client/src/components/Chat/Menus/Presets/PresetItems.tsx
index be131ad697..1a4ecc639b 100644
--- a/client/src/components/Chat/Menus/Presets/PresetItems.tsx
+++ b/client/src/components/Chat/Menus/Presets/PresetItems.tsx
@@ -31,7 +31,7 @@ const PresetItems: FC<{
<>
@@ -62,7 +62,7 @@ const PresetItems: FC<{
{presets && presets.length === 0 && (
diff --git a/client/src/components/Endpoints/MinimalIcon.tsx b/client/src/components/Endpoints/MinimalIcon.tsx
index 601db70950..e61cdfbea8 100644
--- a/client/src/components/Endpoints/MinimalIcon.tsx
+++ b/client/src/components/Endpoints/MinimalIcon.tsx
@@ -2,11 +2,11 @@ import { EModelEndpoint } from 'librechat-data-provider';
import {
AzureMinimalIcon,
OpenAIMinimalIcon,
- ChatGPTMinimalIcon,
+ LightningIcon,
PluginMinimalIcon,
BingAIMinimalIcon,
PaLMinimalIcon,
- AnthropicMinimalIcon,
+ AnthropicIcon,
} from '~/components/svg';
import { cn } from '~/utils';
import { IconProps } from '~/common';
@@ -29,11 +29,11 @@ const MinimalIcon: React.FC
= (props) => {
[EModelEndpoint.gptPlugins]: { icon: , name: 'Plugins' },
[EModelEndpoint.google]: { icon: , name: props.modelLabel || 'PaLM2' },
[EModelEndpoint.anthropic]: {
- icon: ,
+ icon: ,
name: props.modelLabel || 'Claude',
},
[EModelEndpoint.bingAI]: { icon: , name: 'BingAI' },
- [EModelEndpoint.chatGPTBrowser]: { icon: , name: 'ChatGPT' },
+ [EModelEndpoint.chatGPTBrowser]: { icon: , name: 'ChatGPT' },
default: { icon: , name: 'UNKNOWN' },
};
diff --git a/client/src/components/Nav/NavLinks.tsx b/client/src/components/Nav/NavLinks.tsx
index 836c347848..36cd2dd7dd 100644
--- a/client/src/components/Nav/NavLinks.tsx
+++ b/client/src/components/Nav/NavLinks.tsx
@@ -8,7 +8,7 @@ import { ExportModel } from './ExportConversation';
import Settings from './Settings';
import NavLink from './NavLink';
import Logout from './Logout';
-import { LinkIcon, DotsIcon, GearIcon } from '~/components';
+import { LinkIcon, GearIcon } from '~/components';
import { useAuthContext } from '~/hooks/AuthContext';
import { useLocalize } from '~/hooks';
import { cn } from '~/utils/';
@@ -50,15 +50,15 @@ export default function NavLinks() {
)}
-
+
{user?.name || localize('com_nav_user')}
-
-
-
-
-
+
-
+
setShowSettings(true)}
/>
-
+