From 4b7e346206c3f96dd8bed38fd28b68dbbaaca9fe Mon Sep 17 00:00:00 2001 From: Frederic Cabassut Date: Fri, 10 Jul 2026 16:06:16 +0200 Subject: [PATCH] fix(editor): keep toolbar and dropdowns above the Android keyboard Add interactive-widget=resizes-content to the viewport meta so the Android keyboard shrinks the layout viewport through the native inset path. Chromium's visualViewport.height can under-report the visible height by the system nav-bar height, which left the editor toolbar floating above the keyboard; the native resize path is accurate. iOS ignores the attribute and keeps using the visualViewport tracking in NoteEditor. Position toolbar dropdown portals with window.innerHeight instead of visualViewport.height: CSS bottom on position:fixed and getBoundingClientRect() both use layout-viewport coordinates, so mixing in the visual-viewport height pushed dropdowns behind the keyboard while it was open. Co-Authored-By: Claude Fable 5 --- src/app.html | 6 +++++- src/lib/components/FormattingToolbar.svelte | 9 ++++----- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/src/app.html b/src/app.html index 5a01b4e..2d88ced 100644 --- a/src/app.html +++ b/src/app.html @@ -2,7 +2,11 @@ - + +