Skip to content

CANON-041: command-palette mobile height — 100vh → 100dvh + safe-area inset#51

Open
VaultSparkStudios wants to merge 1 commit into
mainfrom
routine/canon-041-palette-dvh
Open

CANON-041: command-palette mobile height — 100vh → 100dvh + safe-area inset#51
VaultSparkStudios wants to merge 1 commit into
mainfrom
routine/canon-041-palette-dvh

Conversation

@VaultSparkStudios

Copy link
Copy Markdown
Owner

What

Fix a CANON-041 violation in the command palette's mobile CSS: height:100vhheight:100dvh, and add padding-bottom: env(safe-area-inset-bottom, 0px).

File: assets/command-palette.js line 96 (inline STYLE string, @media (max-width: 720px) block)

Why this is release-blocking

On iOS Safari, 100vh resolves to the large viewport height (address bar fully collapsed). When the address bar is visible/expanded, the palette is taller than the actual visible area — the bottom of the results list is cut off and unreachable. 100dvh (dynamic viewport height) always equals the currently-visible area regardless of toolbar state.

The missing env(safe-area-inset-bottom, 0px) padding means the bottom results row renders beneath the home indicator on iPhones without a physical home button (iPhone X+).

What to verify on device

  1. Open the site on an iPhone (Safari) with the address bar visible.
  2. Open the command palette (tap the trigger or use the keyboard shortcut).
  3. Before: bottom items were cut off / bottom of the palette disappeared behind the address bar.
  4. After: palette fills exactly the visible viewport; bottom result is always above the home indicator.
  5. Scroll the results list on a long query — confirm it scrolls freely to the last item.

Generated by Claude Code

…area

On iOS Safari, `100vh` equals the large viewport (address bar collapsed),
so the full-screen command palette overflows the visible area when the
address bar is shown. `100dvh` tracks the actual visible viewport.
Added `padding-bottom: env(safe-area-inset-bottom, 0px)` so the results
list is never clipped behind the home indicator on notchless iPhones.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants