From 4c9295de21531e001729cc362494059977e1084f Mon Sep 17 00:00:00 2001 From: Agent Zero Date: Sat, 18 Jul 2026 01:51:01 +0200 Subject: [PATCH] feat: AI sidebar mobile full-width overlay with back button - Mobile: expanded sidebar is fixed inset-0 full-screen overlay with back button - Mobile: collapsed icon strip hidden (no space on mobile) - Desktop: unchanged resizable panel + collapsed icon strip --- frontend/src/components/layout/AISidebar.tsx | 73 +++++++++++++++----- 1 file changed, 54 insertions(+), 19 deletions(-) diff --git a/frontend/src/components/layout/AISidebar.tsx b/frontend/src/components/layout/AISidebar.tsx index b48415d..7ea449b 100644 --- a/frontend/src/components/layout/AISidebar.tsx +++ b/frontend/src/components/layout/AISidebar.tsx @@ -27,11 +27,11 @@ export function AISidebar() { })(); }, []); - // Collapsed: narrow icon strip + // Collapsed: narrow icon strip (desktop only, hidden on mobile) if (aiSidebarCollapsed) { return (
+ KI Assistent
{loading ? ( @@ -83,6 +82,42 @@ export function AISidebar() { )}
- + + {/* Desktop: resizable panel */} + +
+
+ KI Assistent + +
+
+ {loading ? ( +
Laden...
+ ) : sessionId ? ( + + ) : ( +
+ Session konnte nicht erstellt werden +
+ )} +
+
+
+ ); }