diff --git a/surfsense_web/components/layout/ui/icon-rail/SearchSpaceAvatar.tsx b/surfsense_web/components/layout/ui/icon-rail/SearchSpaceAvatar.tsx index d807d5898..1686f3a46 100644 --- a/surfsense_web/components/layout/ui/icon-rail/SearchSpaceAvatar.tsx +++ b/surfsense_web/components/layout/ui/icon-rail/SearchSpaceAvatar.tsx @@ -190,9 +190,7 @@ export function SearchSpaceAvatar({ {avatarButton} - - {menuItems} - + {menuItems} ); } diff --git a/surfsense_web/components/layout/ui/sidebar/InboxSidebar.tsx b/surfsense_web/components/layout/ui/sidebar/InboxSidebar.tsx index 84784d71b..b6caed330 100644 --- a/surfsense_web/components/layout/ui/sidebar/InboxSidebar.tsx +++ b/surfsense_web/components/layout/ui/sidebar/InboxSidebar.tsx @@ -594,15 +594,15 @@ export function InboxSidebar({ {/* Mobile: Button that opens bottom drawer */} {isMobile ? ( <> - + )} - {isMobile ? ( - - ) : ( - - - - - - {t("mark_all_read") || "Mark all as read"} - - - )} + {isMobile ? ( + + ) : ( + + + + + + {t("mark_all_read") || "Mark all as read"} + + + )} {/* Dock/Undock button - desktop only */} {!isMobile && onDockedChange && ( @@ -984,61 +984,61 @@ export function InboxSidebar({ isMarkingAsRead && "opacity-50 pointer-events-none" )} > - {isMobile ? ( - - ) : ( - - - - - -

{item.title}

-

- {convertRenderedToDisplay(item.message)} -

-
-
- )} + {isMobile ? ( + + ) : ( + + + + + +

{item.title}

+

+ {convertRenderedToDisplay(item.message)} +

+
+
+ )} {/* Time and unread dot - fixed width to prevent content shift */}
diff --git a/surfsense_web/components/layout/ui/sidebar/Sidebar.tsx b/surfsense_web/components/layout/ui/sidebar/Sidebar.tsx index 49f5a1de6..883fa5890 100644 --- a/surfsense_web/components/layout/ui/sidebar/Sidebar.tsx +++ b/surfsense_web/components/layout/ui/sidebar/Sidebar.tsx @@ -101,21 +101,21 @@ export function Sidebar({ />
) : ( -
- -
- + {})} - disableTooltip={disableTooltips} + onSettings={onSettings} + onManageMembers={onManageMembers} /> +
+ {})} + disableTooltip={disableTooltips} + /> +
-
)} {/* New chat button */} @@ -149,38 +149,38 @@ export function Sidebar({ defaultOpen={true} fillHeight={false} className="shrink-0 max-h-[50%] flex flex-col" - action={ - onViewAllSharedChats ? ( - disableTooltips ? ( - - ) : ( - - - - - - {t("view_all_shared_chats") || "View all shared chats"} - - - ) - ) : undefined - } - > - {isLoadingChats ? ( + action={ + onViewAllSharedChats ? ( + disableTooltips ? ( + + ) : ( + + + + + + {t("view_all_shared_chats") || "View all shared chats"} + + + ) + ) : undefined + } + > + {isLoadingChats ? (
@@ -221,36 +221,36 @@ export function Sidebar({ title={t("chats")} defaultOpen={true} fillHeight={true} - action={ - onViewAllPrivateChats ? ( - disableTooltips ? ( - - ) : ( - - - - - - {t("view_all_private_chats") || "View all private chats"} - - - ) - ) : undefined - } + action={ + onViewAllPrivateChats ? ( + disableTooltips ? ( + + ) : ( + + + + + + {t("view_all_private_chats") || "View all private chats"} + + + ) + ) : undefined + } > {isLoadingChats ? (
diff --git a/surfsense_web/components/layout/ui/sidebar/SidebarCollapseButton.tsx b/surfsense_web/components/layout/ui/sidebar/SidebarCollapseButton.tsx index 5a02bc09c..44f05249c 100644 --- a/surfsense_web/components/layout/ui/sidebar/SidebarCollapseButton.tsx +++ b/surfsense_web/components/layout/ui/sidebar/SidebarCollapseButton.tsx @@ -11,15 +11,17 @@ interface SidebarCollapseButtonProps { disableTooltip?: boolean; } -export function SidebarCollapseButton({ isCollapsed, onToggle, disableTooltip = false }: SidebarCollapseButtonProps) { +export function SidebarCollapseButton({ + isCollapsed, + onToggle, + disableTooltip = false, +}: SidebarCollapseButtonProps) { const t = useTranslations("sidebar"); const button = ( ); @@ -29,9 +31,7 @@ export function SidebarCollapseButton({ isCollapsed, onToggle, disableTooltip = return ( - - {button} - + {button} {isCollapsed ? `${t("expand_sidebar")} (⌘B)` : `${t("collapse_sidebar")} (⌘B)`}