Мобилка

This commit is contained in:
Халимов Рустам
2026-03-11 17:59:02 +03:00
parent 1da4b26f5b
commit 50d4d75c04
4 changed files with 82 additions and 70 deletions
+9 -3
View File
@@ -257,15 +257,21 @@ export default function ChatPage() {
setGroupCallOpen(false);
};
const activeChat = useChatStore((state) => state.activeChat);
return (
<motion.div
initial={{ opacity: 0 }}
animate={{ opacity: 1 }}
exit={{ opacity: 0 }}
className="h-full flex bg-surface p-3 gap-3 overflow-hidden"
className="h-full flex bg-surface sm:p-3 sm:gap-3 overflow-hidden"
>
<Sidebar />
<ChatView onStartCall={handleStartCall} onStartGroupCall={handleStartGroupCall} />
<div className={`${activeChat ? 'hidden sm:block' : 'block'} w-full sm:w-[340px] flex-shrink-0`}>
<Sidebar />
</div>
<div className={`${activeChat ? 'block' : 'hidden sm:block'} flex-1 h-full min-w-0`}>
<ChatView onStartCall={handleStartCall} onStartGroupCall={handleStartGroupCall} />
</div>
<CallModal
key={callSessionId}
isOpen={callOpen}