From 00bd19374a50589eef7cda33cdbcc18f88ac08d1 Mon Sep 17 00:00:00 2001 From: n4ze3m Date: Sun, 10 Mar 2024 12:52:53 +0530 Subject: [PATCH] Fix styling issues in various components --- src/components/Layouts/Layout.tsx | 22 +++++-------------- .../Layouts/SettingsOptionLayout.tsx | 8 +++---- .../Option/Playground/PlaygroundEmpty.tsx | 2 +- .../Option/Playground/PlaygroundForm.tsx | 2 +- src/components/Option/Settings/other.tsx | 10 ++++----- .../Option/Settings/search-mode.tsx | 2 +- src/components/Option/Sidebar.tsx | 20 ++++++++--------- 7 files changed, 26 insertions(+), 40 deletions(-) diff --git a/src/components/Layouts/Layout.tsx b/src/components/Layouts/Layout.tsx index f50f2d4..d266710 100644 --- a/src/components/Layouts/Layout.tsx +++ b/src/components/Layouts/Layout.tsx @@ -70,7 +70,7 @@ export default function OptionLayout({
-
+
{pathname !== "/" && (
@@ -91,7 +91,7 @@ export default function OptionLayout({
@@ -161,13 +161,6 @@ export default function OptionLayout({ {pathname === "/" && messages.length > 0 && !streaming && ( )} - {/* - - - - */} - {/* - - - - */} setSidebarOpen(false)} open={sidebarOpen}> - + setSidebarOpen(false)} + />
) diff --git a/src/components/Layouts/SettingsOptionLayout.tsx b/src/components/Layouts/SettingsOptionLayout.tsx index ed6063a..a53bfcb 100644 --- a/src/components/Layouts/SettingsOptionLayout.tsx +++ b/src/components/Layouts/SettingsOptionLayout.tsx @@ -23,15 +23,15 @@ const LinkComponent = (item: { to={item.href} className={classNames( item.current === item.href - ? "bg-gray-100 text-indigo-600 dark:bg-[#262626] dark:text-white" - : "text-gray-700 hover:text-indigo-600 hover:bg-gray-100 dark:text-gray-200 dark:hover:text-white dark:hover:bg-[#262626]", + ? "bg-gray-100 text-gray-600 dark:bg-[#262626] dark:text-white" + : "text-gray-700 hover:text-gray-600 hover:bg-gray-100 dark:text-gray-200 dark:hover:text-white dark:hover:bg-[#262626]", "group flex gap-x-3 rounded-md py-2 pl-2 pr-3 text-sm leading-6 font-semibold" )}>