From 52bba75ee550923a06a5ce351bed5c0250418d66 Mon Sep 17 00:00:00 2001 From: Dorian Date: Sat, 7 Mar 2026 19:54:45 +0000 Subject: [PATCH] =?UTF-8?q?fix:=20mobile=20human=20fight=20=E2=80=94=20spl?= =?UTF-8?q?it=20view=20with=2060/40=20canvas/controls=20layout?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Canvas takes top 60%, controls panel takes bottom 40% on mobile - Battle log header/text hidden on mobile, controls always visible - Multiple choice buttons shown on both mobile and desktop - Removed canvas overlay approach in favor of proper split layout Co-Authored-By: Claude Opus 4.6 --- frontend/src/pages/FightPage.vue | 144 ++++++------------------------- 1 file changed, 26 insertions(+), 118 deletions(-) diff --git a/frontend/src/pages/FightPage.vue b/frontend/src/pages/FightPage.vue index 6cd79ae..e624e1e 100644 --- a/frontend/src/pages/FightPage.vue +++ b/frontend/src/pages/FightPage.vue @@ -84,10 +84,8 @@ function applyChallenge(data: any, receivedAt?: number) { humanChoices.value = data.choices || [] humanAnswer.value = '' humanSubmitted.value = false - // Mobile: 4 second timer for quick tap choices; desktop: full remaining time - humanTimer.value = isMobile.value ? 4 : Math.ceil(remaining / 1000) + humanTimer.value = Math.ceil(remaining / 1000) startTimer() - if (!isMobile.value) nextTick(() => answerInput.value?.focus()) } function submitChoice(choice: string) { @@ -645,15 +643,16 @@ function stopAutoBattle() {
- -