From 14bbd4a3905377c8fe8ec910f5673f773efc612e Mon Sep 17 00:00:00 2001 From: xarmian Date: Tue, 7 Jul 2026 21:29:01 -0400 Subject: [PATCH] fix(mobile): hide bottom nav when on-screen keyboard is up (BUG-2070) (#859) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PLAN-1694 Phase 1 specced "hide the bar when the on-screen keyboard is up" but it shipped unimplemented — the fixed BottomNav stayed pinned above the keyboard, eating vertical space during text entry. Detect the keyboard from its own geometry: track visualViewport.height against the tallest height seen (the keyboard-closed baseline) and flag keyboardVisible when it shrinks >150px. This works on iOS Safari and Android Chrome, unlike `innerHeight - visualViewport.height`, which stays ~0 on browsers that shrink innerHeight in lockstep with the visual viewport. Baseline grows as the URL bar collapses on scroll and re-captures on orientationchange so rotation/chrome don't false-trigger; gated on isTouch. BottomNav gates the