diff --git a/apps/web/src/components/CallModal.tsx b/apps/web/src/components/CallModal.tsx index af3c25c..8c2b0e6 100644 --- a/apps/web/src/components/CallModal.tsx +++ b/apps/web/src/components/CallModal.tsx @@ -1574,14 +1574,15 @@ export default function CallModal({ isOpen, onClose, targetUser, callType: initi animate={{ scale: 1, opacity: 1, y: 0 }} exit={{ scale: 0.9, opacity: 0, y: 20 }} transition={{ type: 'spring', damping: 25, stiffness: 300 }} - className={`relative w-full mx-4 rounded-[2.5rem] glass-strong shadow-2xl shadow-black/50 overflow-hidden border border-white/5 ${showVideoArea ? 'max-w-5xl' : 'max-w-md' - }`} + className={`relative w-full h-full sm:h-auto sm:mx-4 sm:rounded-[2.5rem] glass-strong shadow-2xl shadow-black/50 overflow-hidden border border-white/5 flex flex-col ${ + showVideoArea ? 'sm:max-w-5xl' : 'sm:max-w-md' + }`} > {/* Mic selector popup */} {showMicMenu && microphones.length > 0 && ( <>
setShowMicMenu(false)} /> -
+
{t('selectMicrophone')}
{microphones.map((mic, i) => ( diff --git a/apps/web/src/components/ChatView.tsx b/apps/web/src/components/ChatView.tsx index 43caab6..0e2db54 100644 --- a/apps/web/src/components/ChatView.tsx +++ b/apps/web/src/components/ChatView.tsx @@ -16,6 +16,7 @@ import { Pin, Forward, Bookmark, + ArrowLeft, } from 'lucide-react'; import { useChatStore } from '../stores/chatStore'; import { useAuthStore } from '../stores/authStore'; @@ -421,19 +422,17 @@ export default function ChatView({ onStartCall, onStartGroupCall }: { onStartCal
- {/* Шапка чата */} {selectionMode ? ( -
-
+
+
{selectedMessages.size} {t('selected') || 'выбрано'}
- {/* Кнопка удаления с выпадающим меню */}
) : ( -
- +
+
+ + +
- {/* Поиск */} {showSearch && ( )} - {/* Меню */}
{storyGroups.map((group, idx) => { diff --git a/apps/web/src/pages/ChatPage.tsx b/apps/web/src/pages/ChatPage.tsx index ec8b6cd..ce09283 100644 --- a/apps/web/src/pages/ChatPage.tsx +++ b/apps/web/src/pages/ChatPage.tsx @@ -257,15 +257,21 @@ export default function ChatPage() { setGroupCallOpen(false); }; + const activeChat = useChatStore((state) => state.activeChat); + return ( - - +
+ +
+
+ +