diff --git a/app/page.tsx b/app/page.tsx index 16ae4a2..b1770e4 100644 --- a/app/page.tsx +++ b/app/page.tsx @@ -3,7 +3,6 @@ import React, { useState, useEffect, useRef } from "react"; import { DrawIoEmbed } from "react-drawio"; import ChatPanel from "@/components/chat-panel"; import { useDiagram } from "@/contexts/diagram-context"; -import { Monitor } from "lucide-react"; import { ResizablePanelGroup, ResizablePanel, @@ -74,29 +73,13 @@ export default function Home() { return (
- {/* Mobile warning overlay */} - {isMobile && ( -
-
-
- -
-

- Desktop Required -

-

- This application works best on desktop or laptop - devices. Please open it on a larger screen for the - full experience. -

-
-
- )} - - + {/* Draw.io Canvas */} - -
+ +
setIsChatVisible(false)} onExpand={() => setIsChatVisible(true)} > -
+
diff --git a/components/chat-panel.tsx b/components/chat-panel.tsx index 568b766..dc8a11f 100644 --- a/components/chat-panel.tsx +++ b/components/chat-panel.tsx @@ -31,6 +31,7 @@ interface ChatPanelProps { onToggleVisibility: () => void; drawioUi: "min" | "sketch"; onToggleDrawioUi: () => void; + isMobile?: boolean; } export default function ChatPanel({ @@ -38,6 +39,7 @@ export default function ChatPanel({ onToggleVisibility, drawioUi, onToggleDrawioUi, + isMobile = false, }: ChatPanelProps) { const { loadDiagram: onDisplayChart, @@ -410,8 +412,8 @@ Please retry with an adjusted search pattern or use display_diagram if retries a ); }; - // Collapsed view - if (!isVisible) { + // Collapsed view (desktop only) + if (!isVisible && !isMobile) { return (
{/* Header */} -
+
-
+
Next AI Drawio -

+

Next AI Drawio

- - About - - - - + {!isMobile && ( + + About + + )} + {!isMobile && ( + + + + )}
- + {accessCodeRequired && ( setShowSettingsDialog(true)} className="hover:bg-accent" > - + + + )} + {!isMobile && ( + + )} - - -
@@ -521,7 +529,7 @@ Please retry with an adjusted search pattern or use display_diagram if retries a {/* Input */} -