diff --git a/surfsense_web/components/assistant-ui/thread.tsx b/surfsense_web/components/assistant-ui/thread.tsx index 1b8548e3d..08ebc6a19 100644 --- a/surfsense_web/components/assistant-ui/thread.tsx +++ b/surfsense_web/components/assistant-ui/thread.tsx @@ -1014,13 +1014,13 @@ const ConnectedScraperIcons: FC<{ workspaceId: number }> = ({ workspaceId }) => return (
-
+
    {platforms.map((platform, i) => { const Icon = platform.icon; return ( - = ({ workspaceId }) => className="flex size-5 items-center justify-center" > - + {platform.label} ยท Connected ); })} -
+
); }; diff --git a/surfsense_web/components/layout/ui/sidebar/DocumentsSidebar.tsx b/surfsense_web/components/layout/ui/sidebar/DocumentsSidebar.tsx index 5d4efac81..10c4247eb 100644 --- a/surfsense_web/components/layout/ui/sidebar/DocumentsSidebar.tsx +++ b/surfsense_web/components/layout/ui/sidebar/DocumentsSidebar.tsx @@ -145,10 +145,10 @@ export function EmbeddedDocumentsMenu({ type="button" variant="ghost" size="icon" - className="relative h-7 w-7 text-muted-foreground hover:bg-accent hover:text-accent-foreground" + className="relative h-6 w-6 text-muted-foreground hover:bg-accent hover:text-accent-foreground" aria-label="Document actions" > - + {activeTypes.length > 0 ? ( ) : null} @@ -284,10 +284,10 @@ export function EmbeddedImportMenu({ type="button" variant="ghost" size="icon" - className="h-7 w-7 text-muted-foreground hover:bg-accent hover:text-accent-foreground" + className="h-6 w-6 text-muted-foreground hover:bg-accent hover:text-accent-foreground" aria-label="Import documents" > - + @@ -1267,7 +1267,7 @@ function AuthenticatedDocumentsSidebarBase({ defaultOpen={true} contentClassName="px-0" persistentAction={ -
+
+
onNavItemClick?.(playgroundItem)} isCollapsed={isCollapsed} isActive={playgroundItem.isActive} + badge={ + + New + + } tooltipContent={isCollapsed ? playgroundItem.title : undefined} /> )} diff --git a/surfsense_web/components/layout/ui/sidebar/SidebarButton.tsx b/surfsense_web/components/layout/ui/sidebar/SidebarButton.tsx index cc7f83e1d..5b98be560 100644 --- a/surfsense_web/components/layout/ui/sidebar/SidebarButton.tsx +++ b/surfsense_web/components/layout/ui/sidebar/SidebarButton.tsx @@ -73,17 +73,19 @@ export function SidebarButton({ isCollapsed ? "max-w-0 opacity-0 ml-0" : "max-w-[260px] flex-1 opacity-100 ml-2" )} > - {label} + + {label} + {!isCollapsed && badge && typeof badge !== "string" ? badge : null} + {!isCollapsed && badge && typeof badge === "string" ? ( + + {badge} + + ) : null} + {!isCollapsed && trailingContent} - {!isCollapsed && badge && typeof badge !== "string" ? badge : null} - {!isCollapsed && badge && typeof badge === "string" ? ( - - {badge} - - ) : null} {collapsedOverlay && (