diff --git a/app/(dashboard)/chat/page.tsx b/app/(dashboard)/chat/page.tsx index 19708cf..c12fb7a 100644 --- a/app/(dashboard)/chat/page.tsx +++ b/app/(dashboard)/chat/page.tsx @@ -42,6 +42,7 @@ export default function AIChatPage() { const [sessions, setSessions] = useState([]); const [activeSessionId, setActiveSessionId] = useState(null); const [input, setInput] = useState(""); + const [isMobileSessionsOpen, setIsMobileSessionsOpen] = useState(false); const messagesEndRef = useRef(null); const { messages, sendMessage, setMessages, status, stop } = useChat({ @@ -158,55 +159,85 @@ export default function AIChatPage() { await sendMessage({ text: currentInput }, { body: { sessionId } }); } - return ( -
-
+ + ); + + return ( +
+ + {/* Desktop Sidebar */} + -
-
+ {/* Mobile Sidebar Overlay */} + {isMobileSessionsOpen && ( +
setIsMobileSessionsOpen(false)} + /> + )} + + {/* Mobile Sidebar Drawer */} + +
+
@@ -216,8 +247,8 @@ export default function AIChatPage() {

Kayıtlı verilerin hakkında soru sor.

-
@@ -264,8 +295,8 @@ export default function AIChatPage() {
-
-
+ +