+ {/* Back button - mobile only */}
+ {isMobile && (
+
+ )}
{t("inbox") || "Inbox"}
@@ -816,23 +828,6 @@ export function InboxSidebar({
{t("mark_all_read") || "Mark all as read"}
- {/* Close button - mobile only */}
- {isMobile && (
-
-
-
-
- {t("close") || "Close"}
-
- )}
{/* Dock/Undock button - desktop only */}
{!isMobile && onDockedChange && (
diff --git a/surfsense_web/components/layout/ui/sidebar/MobileSidebar.tsx b/surfsense_web/components/layout/ui/sidebar/MobileSidebar.tsx
index 12980e4d5..7ffa8baa4 100644
--- a/surfsense_web/components/layout/ui/sidebar/MobileSidebar.tsx
+++ b/surfsense_web/components/layout/ui/sidebar/MobileSidebar.tsx
@@ -1,6 +1,6 @@
"use client";
-import { Menu, Plus } from "lucide-react";
+import { PanelRightClose, Plus } from "lucide-react";
import { Button } from "@/components/ui/button";
import { ScrollArea } from "@/components/ui/scroll-area";
import { Sheet, SheetContent, SheetTitle } from "@/components/ui/sheet";
@@ -44,7 +44,7 @@ interface MobileSidebarProps {
export function MobileSidebarTrigger({ onClick }: { onClick: () => void }) {
return (
);
@@ -139,6 +139,7 @@ export function MobileSidebar({
onOpenChange(false)}
navItems={navItems}
onNavItemClick={handleNavItemClick}
chats={chats}
@@ -164,6 +165,7 @@ export function MobileSidebar({
setTheme={setTheme}
className="w-full border-none"
isLoadingChats={isLoadingChats}
+ disableTooltips
/>
diff --git a/surfsense_web/components/layout/ui/sidebar/Sidebar.tsx b/surfsense_web/components/layout/ui/sidebar/Sidebar.tsx
index 7b53fdc6a..5b1fb26f5 100644
--- a/surfsense_web/components/layout/ui/sidebar/Sidebar.tsx
+++ b/surfsense_web/components/layout/ui/sidebar/Sidebar.tsx
@@ -50,6 +50,7 @@ interface SidebarProps {
setTheme?: (theme: "light" | "dark" | "system") => void;
className?: string;
isLoadingChats?: boolean;
+ disableTooltips?: boolean;
}
export function Sidebar({
@@ -78,6 +79,7 @@ export function Sidebar({
setTheme,
className,
isLoadingChats = false,
+ disableTooltips = false,
}: SidebarProps) {
const t = useTranslations("sidebar");
@@ -95,23 +97,25 @@ export function Sidebar({
{})}
+ disableTooltip={disableTooltips}
/>
)}
{/* New chat button */}
@@ -138,7 +142,7 @@ export function Sidebar({
{isCollapsed ? (