From d302fbd272e864861edad643ef6faa29f950e62b Mon Sep 17 00:00:00 2001 From: Anish Sarkar <104695310+AnishSarkar22@users.noreply.github.com> Date: Mon, 4 May 2026 04:03:14 +0530 Subject: [PATCH] refactor(styles): standardize input and button styles across various components; enhance hover effects and background management for improved UI consistency --- .../components/documents/DocumentsFilters.tsx | 13 +++++++------ .../layout/ui/sidebar/AllPrivateChatsSidebar.tsx | 4 ++-- .../layout/ui/sidebar/AllSharedChatsSidebar.tsx | 4 ++-- .../layout/ui/sidebar/DesktopLocalTabContent.tsx | 4 ++-- .../layout/ui/sidebar/DocumentsSidebar.tsx | 4 ++-- .../components/layout/ui/sidebar/InboxSidebar.tsx | 4 ++-- .../components/new-chat/chat-share-button.tsx | 8 ++++---- .../components/new-chat/model-selector.tsx | 4 ++-- 8 files changed, 23 insertions(+), 22 deletions(-) diff --git a/surfsense_web/components/documents/DocumentsFilters.tsx b/surfsense_web/components/documents/DocumentsFilters.tsx index 50df59955..1a1784b12 100644 --- a/surfsense_web/components/documents/DocumentsFilters.tsx +++ b/surfsense_web/components/documents/DocumentsFilters.tsx @@ -78,13 +78,13 @@ export function DocumentsFilters({
{/* New Folder + AI Sort + Filter Toggle Group */} - + {onCreateFolder && ( { e.preventDefault(); onCreateFolder(); @@ -104,7 +104,8 @@ export function DocumentsFilters({ value="ai-sort" disabled={aiSortBusy} className={cn( - "h-8 w-8 shrink-0 border bg-muted/50 transition-colors", + "h-8 w-8 shrink-0 border-0 bg-muted transition-colors", + "relative before:absolute before:left-0 before:top-1/2 before:h-4 before:w-px before:-translate-y-1/2 before:bg-border/60 before:content-[''] dark:before:bg-white/10", "disabled:pointer-events-none disabled:opacity-50", aiSortEnabled ? "bg-accent text-accent-foreground hover:bg-accent" @@ -142,7 +143,7 @@ export function DocumentsFilters({ {activeTypes.length > 0 && ( @@ -226,13 +227,13 @@ export function DocumentsFilters({ {/* Search Input */}
-
+
onSearch(e.target.value)} placeholder="Search docs" diff --git a/surfsense_web/components/layout/ui/sidebar/AllPrivateChatsSidebar.tsx b/surfsense_web/components/layout/ui/sidebar/AllPrivateChatsSidebar.tsx index 717f38743..439c09017 100644 --- a/surfsense_web/components/layout/ui/sidebar/AllPrivateChatsSidebar.tsx +++ b/surfsense_web/components/layout/ui/sidebar/AllPrivateChatsSidebar.tsx @@ -275,13 +275,13 @@ export function AllPrivateChatsSidebarContent({ placeholder={t("search_chats") || "Search chats..."} value={searchQuery} onChange={(e) => setSearchQuery(e.target.value)} - className="h-8 pl-8 pr-7 text-sm" + className="h-8 border-0 bg-muted pl-8 pr-7 text-sm shadow-none" /> {searchQuery && (