diff --git a/frontend/src/pages/Dashboard.tsx b/frontend/src/pages/Dashboard.tsx index 25255cf..fecf33f 100644 --- a/frontend/src/pages/Dashboard.tsx +++ b/frontend/src/pages/Dashboard.tsx @@ -45,6 +45,8 @@ export function Dashboard({ onOpenProject }: DashboardProps) { const [savingProject, setSavingProject] = useState(false); const [dragOverFolderId, setDragOverFolderId] = useState(null); const [expandedFolders, setExpandedFolders] = useState>(new Set()); + const [mobileTreeOpen, setMobileTreeOpen] = useState(false); + const [mobileInfoOpen, setMobileInfoOpen] = useState(false); const fetchAll = useCallback(async () => { if (!token) return; @@ -207,6 +209,7 @@ export function Dashboard({ onOpenProject }: DashboardProps) { const handleProjectCardClick = (projectId: string) => { setSelectedProjectId(projectId); + setMobileInfoOpen(true); }; const handleSaveProject = async () => { @@ -383,6 +386,9 @@ export function Dashboard({ onOpenProject }: DashboardProps) {
+

Web CAD

{user?.name} ({user?.role})
@@ -392,8 +398,12 @@ export function Dashboard({ onOpenProject }: DashboardProps) {
+ {(mobileTreeOpen || mobileInfoOpen) && ( +
{ setMobileTreeOpen(false); setMobileInfoOpen(false); }} /> + )}
-
handleContextMenu(e, null)}> +
handleContextMenu(e, null)}> +

Ordner

{selectedProject ? ( <>