Skip to content

web app: a narrow window follows the editor's focus, not the on-screen keyboard #229

Closed

Description

@frostyard-machines

What

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

  1. added
    bug
    on Nov 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions