You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
web app: a narrow window follows the editor's focus, not the on-screen keyboard #229
docs/specs/ui.md, Narrow windows says the bottom bar "hides while the on-screen keyboard is open", and prompts "end at the keyboard". The web app follows the editor's focus, not the keyboard:
The bottom bar:app/src/app/MainWindow.tsx swaps the bottom bar for the editing toolbar only while a CodeMirror editor has the focus (useEditorFocus in app/src/app/keyboard.ts). A field outside the editor in the note's view (the inline title, features/workspace/InlineTitle.tsx; a property, features/properties/PropertiesBlock.tsx) opens the keyboard and leaves the bottom bar drawn.
Prompts: lodge-ui's Prompt (@frostyard/lodge-ui v0.6.0, ui/src/react/Prompt.tsx) takes max-h-[100dvh] in a narrow window. On iOS Safari, dvh does not shrink for the keyboard, so the last rows of a long list can sit under it. useKeyboardInset (the visual viewport) already measures the keyboard for the editing toolbar.
Plan 0006's Phase 5 evidence records the first part as a difference of the automated run ("a narrow window's bottom bar shows once no editor has the focus").
Done when
The bottom bar hides while any text field has the keyboard open in a narrow window (or the spec is changed to say "while an editor has the focus", with the reason).
Prompts end at the keyboard (useKeyboardInset), in notes or in lodge-ui; a change in lodge-ui goes to frostyard/lodge, and notes takes the new release.
Vitest tests cover the bottom bar's rule; make ui-check is green.
Found while checking the leftovers of plan 0006 (Phase 5) against main at 851670a.
Activity