From 264df3441b51067ed7158b959c6f95dd8c40cd25 Mon Sep 17 00:00:00 2001 From: pablonyx Date: Wed, 11 Dec 2024 09:19:14 -0800 Subject: [PATCH] Various clean ups (#3413) * tbd * minor * prettify * update sidebar values --- web/src/app/chat/ChatBanner.tsx | 12 +- web/src/app/chat/ChatPage.tsx | 2 +- .../app/chat/documentSidebar/ChatFilters.tsx | 2 +- .../chat/sessionSidebar/HistorySidebar.tsx | 2 +- .../app/chat/shared_chat_search/FixedLogo.tsx | 6 +- web/src/components/admin/ClientLayout.tsx | 4 +- .../admin/connectors/AdminSidebar.tsx | 40 +++--- .../chat_search/AssistantSelector.tsx | 24 ++-- web/src/components/chat_search/Header.tsx | 122 ++++++++++-------- web/src/components/header/LogoType.tsx | 9 +- 10 files changed, 125 insertions(+), 98 deletions(-) diff --git a/web/src/app/chat/ChatBanner.tsx b/web/src/app/chat/ChatBanner.tsx index 59fc8bd32..3479b7f1e 100644 --- a/web/src/app/chat/ChatBanner.tsx +++ b/web/src/app/chat/ChatBanner.tsx @@ -60,7 +60,11 @@ export function ChatBanner() {
{liveAssistant && onAssistantChange && ( -
+
{!settings?.isMobile && (
( return (
{ diff --git a/web/src/app/chat/sessionSidebar/HistorySidebar.tsx b/web/src/app/chat/sessionSidebar/HistorySidebar.tsx index 04f945353..3ab76d499 100644 --- a/web/src/app/chat/sessionSidebar/HistorySidebar.tsx +++ b/web/src/app/chat/sessionSidebar/HistorySidebar.tsx @@ -101,7 +101,7 @@ export const HistorySidebar = forwardRef( flex-col relative h-screen transition-transform - pt-2`} + `} >
@@ -46,8 +46,8 @@ export default function FixedLogo({
-
- {/* */} +
+
); diff --git a/web/src/components/admin/ClientLayout.tsx b/web/src/components/admin/ClientLayout.tsx index 53130da99..c85a0f7fe 100644 --- a/web/src/components/admin/ClientLayout.tsx +++ b/web/src/components/admin/ClientLayout.tsx @@ -58,7 +58,7 @@ export function ClientLayout({ return (
-
+
-
+
diff --git a/web/src/components/admin/connectors/AdminSidebar.tsx b/web/src/components/admin/connectors/AdminSidebar.tsx index a510a63fd..cb1dbca5e 100644 --- a/web/src/components/admin/connectors/AdminSidebar.tsx +++ b/web/src/components/admin/connectors/AdminSidebar.tsx @@ -38,31 +38,25 @@ export function AdminSidebar({ collections }: { collections: Collection[] }) { return (