From f52c86b04983153712812e1c78305c26daae4108 Mon Sep 17 00:00:00 2001 From: Alexej Wolff Date: Wed, 11 Feb 2026 21:38:51 +0100 Subject: [PATCH] Increase mobile chat font size --- src/pages/GamePage.css | 2 +- src/pages/GamePage.tsx | 9 ++++++--- 2 files changed, 7 insertions(+), 4 deletions(-) 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);