diff --git a/web/src/app/assistants/SidebarWrapper.tsx b/web/src/app/assistants/SidebarWrapper.tsx index 58190228bbd1..a5a1cdb4148d 100644 --- a/web/src/app/assistants/SidebarWrapper.tsx +++ b/web/src/app/assistants/SidebarWrapper.tsx @@ -153,13 +153,15 @@ export default function SidebarWrapper({ />
{children}
- + ); } diff --git a/web/src/app/chat/ChatPage.tsx b/web/src/app/chat/ChatPage.tsx index 4c4291405f90..a4fcc00e1d97 100644 --- a/web/src/app/chat/ChatPage.tsx +++ b/web/src/app/chat/ChatPage.tsx @@ -2512,7 +2512,7 @@ export function ChatPage({ )} - + - + <>
{isRenamingChat ? ( @@ -144,8 +144,8 @@ export function ChatSessionDisplay({ className={`absolute right-0 top-0 h-full w-8 bg-gradient-to-r from-transparent ${ isSelected - ? "to-background-chat-hover" - : " to-background-chat-selected group-hover:to-background-chat-hover" + ? "to-background-chat-selected" + : "group-hover:to-background-chat-hover" } `} />

diff --git a/web/src/app/chat/shared/[chatId]/SharedChatDisplay.tsx b/web/src/app/chat/shared/[chatId]/SharedChatDisplay.tsx index de2d443963fd..e633d01ba0b3 100644 --- a/web/src/app/chat/shared/[chatId]/SharedChatDisplay.tsx +++ b/web/src/app/chat/shared/[chatId]/SharedChatDisplay.tsx @@ -27,7 +27,6 @@ function BackToDanswerButton() { Back to {enterpriseSettings?.application_name || "Danswer Chat"}
- pr ); } diff --git a/web/src/app/chat/shared_chat_search/FixedLogo.tsx b/web/src/app/chat/shared_chat_search/FixedLogo.tsx index 717b407c8a47..921220adbd7c 100644 --- a/web/src/app/chat/shared_chat_search/FixedLogo.tsx +++ b/web/src/app/chat/shared_chat_search/FixedLogo.tsx @@ -8,7 +8,12 @@ import Link from "next/link"; import { useContext } from "react"; import { FiSidebar } from "react-icons/fi"; -export default function FixedLogo({ chat }: { chat?: boolean }) { +export default function FixedLogo({ + // Whether the sidebar is toggled or not + backgroundToggled, +}: { + backgroundToggled?: boolean; +}) { const combinedSettings = useContext(SettingsContext); const settings = combinedSettings?.settings; const enterpriseSettings = combinedSettings?.enterpriseSettings; @@ -28,7 +33,7 @@ export default function FixedLogo({ chat }: { chat?: boolean }) {
{enterpriseSettings && enterpriseSettings.application_name ? (
- + {enterpriseSettings.application_name} {!NEXT_PUBLIC_DO_NOT_USE_TOGGLE_OFF_DANSWER_POWERED && ( @@ -36,7 +41,9 @@ export default function FixedLogo({ chat }: { chat?: boolean }) { )}
) : ( - Danswer + + Danswer + )}
diff --git a/web/src/components/BasicClickable.tsx b/web/src/components/BasicClickable.tsx index 44386a9d177f..c7a58d3cb031 100644 --- a/web/src/components/BasicClickable.tsx +++ b/web/src/components/BasicClickable.tsx @@ -81,14 +81,12 @@ export function BasicSelectable({ children, selected, hasBorder, - chat, fullWidth = false, padding = "normal", }: { children: string | JSX.Element; selected: boolean; hasBorder?: boolean; - chat?: boolean; fullWidth?: boolean; padding?: "none" | "normal" | "extra"; }) { @@ -104,12 +102,8 @@ export function BasicSelectable({ ${hasBorder ? "border border-border" : ""} ${ selected - ? chat - ? "bg-background-chat-selected" - : "bg-hover" - : chat - ? "bg-background-chat-hover" - : "hover:bg-hover" + ? "bg-background-chat-selected" + : "hover:bg-background-chat-hover" } ${fullWidth ? "w-full" : ""}`} > diff --git a/web/src/components/admin/ClientLayout.tsx b/web/src/components/admin/ClientLayout.tsx index 16500b5e0ebf..7ca8eb75283f 100644 --- a/web/src/components/admin/ClientLayout.tsx +++ b/web/src/components/admin/ClientLayout.tsx @@ -58,7 +58,7 @@ export function ClientLayout({ return (
-
+
{enterpriseSettings && enterpriseSettings.application_name ? (
- + {enterpriseSettings.application_name} {!NEXT_PUBLIC_DO_NOT_USE_TOGGLE_OFF_DANSWER_POWERED && ( @@ -65,7 +65,7 @@ export function AdminSidebar({ collections }: { collections: Collection[] }) { )}
) : ( - Danswer + Danswer )}
@@ -74,7 +74,7 @@ export function AdminSidebar({ collections }: { collections: Collection[] }) {
- diff --git a/web/src/components/search/SearchSection.tsx b/web/src/components/search/SearchSection.tsx index 454f180bf21f..656d57f2a1b9 100644 --- a/web/src/components/search/SearchSection.tsx +++ b/web/src/components/search/SearchSection.tsx @@ -851,7 +851,7 @@ export const SearchSection = ({
- + ); }; diff --git a/web/tailwind-themes/tailwind.config.js b/web/tailwind-themes/tailwind.config.js index b427e19a3f06..c50d77f7073c 100644 --- a/web/tailwind-themes/tailwind.config.js +++ b/web/tailwind-themes/tailwind.config.js @@ -103,10 +103,15 @@ module.exports = { // colors for sidebar in chat, search, and manage settings "background-sidebar": "var(--background-100)", - "background-settings-sidebar": "var(--background-100)", "background-chatbar": "var(--background-100)", "text-sidebar": "var(--text-500)", + "toggled-background": "var(--background-400)", + "untoggled-background": "var(--background-200)", + + "background-back-button": "var(--background-200)", + "text-back-button": "var(--text-800)", + // Settings "text-sidebar-subtle": "var(--text-500)", "icon-settings-sidebar": "var(--text-600)", @@ -114,9 +119,14 @@ module.exports = { "text-settings-sidebar-strong": "var(--text-900)", "background-settings-hover": "var(--background-200)", + "background-chat-hover": "var(--background-200)", + "background-chat-selected": "var(--background-200)", + // Background for chat messages (user bubbles) user: "var(--user-bubble)", + "background-toggle": "var(--background-100)", + // Colors for the search toggle buttons "background-agentic-toggled": "var(--light-success)", "background-agentic-untoggled": "var(--undo)",