diff --git a/src/pages/GamePage.css b/src/pages/GamePage.css index ce97a1f..3a46ba4 100644 --- a/src/pages/GamePage.css +++ b/src/pages/GamePage.css @@ -317,7 +317,7 @@ @media (max-width: 768px) { .message-content { - font-size: 19px; + font-size: 22px; line-height: 1.8; } } diff --git a/src/pages/GamePage.tsx b/src/pages/GamePage.tsx index b5b1bc9..0cbc947 100644 --- a/src/pages/GamePage.tsx +++ b/src/pages/GamePage.tsx @@ -662,9 +662,12 @@ export default function GamePage() { setIsInitialLoading(false); }; - const handleDeleteSession = async (sessionId: string, sessionName: string) => { + const handleDeleteSession = async ( + sessionId: string, + sessionName: string, + ) => { if (!id) return; - + const confirmed = confirm(`Удалить сессию "${sessionName}"?`); if (!confirmed) return; @@ -672,7 +675,7 @@ export default function GamePage() { if (success) { const newList = sessionsList.filter((s) => s.id !== sessionId); setSessionsList(newList); - + // Если удалили текущую сессию — переключаемся на первую оставшуюся if (sessionId === currentSessionId && newList.length > 0) { handleSwitchSession(newList[0].id);