diff --git a/frontend/src/app/(dashboard)/agents/[threadId]/page.tsx b/frontend/src/app/(dashboard)/agents/[threadId]/page.tsx index 4fc34231..e3e30a2a 100644 --- a/frontend/src/app/(dashboard)/agents/[threadId]/page.tsx +++ b/frontend/src/app/(dashboard)/agents/[threadId]/page.tsx @@ -18,6 +18,7 @@ import { useSidebar } from "@/components/ui/sidebar"; import { useAgentStream } from '@/hooks/useAgentStream'; import { Markdown } from '@/components/ui/markdown'; import { cn } from "@/lib/utils"; +import { useIsMobile } from "@/hooks/use-mobile"; import { UnifiedMessage, ParsedContent, ParsedMetadata, ThreadParams } from '@/components/thread/types'; import { getToolIcon, extractPrimaryParam, safeJsonParse } from '@/components/thread/utils'; @@ -188,6 +189,7 @@ function renderMarkdownContent(content: string, handleToolClick: (assistantMessa export default function ThreadPage({ params }: { params: Promise }) { const unwrappedParams = React.use(params); const threadId = unwrappedParams.threadId; + const isMobile = useIsMobile(); const router = useRouter(); const [messages, setMessages] = useState([]); @@ -1132,14 +1134,16 @@ export default function ThreadPage({ params }: { params: Promise } return (
- + {!isMobile && ( + + )}
}
-
+
) { - const { state, setOpen } = useSidebar() + const { state, setOpen, setOpenMobile } = useSidebar() + const isMobile = useIsMobile() const [user, setUser] = useState<{ name: string; email: string; @@ -88,16 +91,29 @@ export function SidebarLeft({ {/* SUNA */}
)} - {state !== "collapsed" && ( -
+
+ {state !== "collapsed" && ( Toggle sidebar (CMD+B) -
- )} + )} + {isMobile && ( + + + + + Open menu + + )} +
diff --git a/frontend/src/components/thread/tool-call-side-panel.tsx b/frontend/src/components/thread/tool-call-side-panel.tsx index ceac7070..a1ff58be 100644 --- a/frontend/src/components/thread/tool-call-side-panel.tsx +++ b/frontend/src/components/thread/tool-call-side-panel.tsx @@ -369,6 +369,7 @@ export function ToolCallSidePanel({ />
)} +
); } \ No newline at end of file