Skip to content

fix: use 100dvh so the chat input bar is reachable on mobile - #4

Open
kon-foo wants to merge 1 commit into
open-gitagent:mainfrom
kon-foo:fix/mobile-input-bar-dvh
Open

fix: use 100dvh so the chat input bar is reachable on mobile#4
kon-foo wants to merge 1 commit into
open-gitagent:mainfrom
kon-foo:fix/mobile-input-bar-dvh

Conversation

@kon-foo

@kon-foo kon-foo commented Aug 31, 2026

Copy link
Copy Markdown

Current behaviour: the chat input bar is unreachable on small screens. It
renders below the fold, and overflow: hidden on body makes it unreachable —
you cannot scroll to it. This only shows up on a real phone, where the browser's
address bar pushes the content down and out of the screen.

Fix: add height: 100dvh so the actual visible height (screen minus address
bar) is used. height: 100vh stays on the line above as the fallback for
browsers that don't understand dvh.

Tested on a Pixel 8 in Firefox and Vanadium, portrait and landscape, before and
after: the input bar is off-screen by 64–80px before, fully visible after.

Note

I could not run npm run build: on a clean clone package-lock.json resolves
@open-gitagent/gitagent to file:core.tgz, which is not in the repo, so
npm ci and npm install both fail with ENOENT. The change is CSS-only in a
file the build step only copies. Happy to open that separately if it is news.

On mobile, 100vh is the large viewport — the height the page would have with
the address bar retracted — so the layout is 64-80px taller than the screen.
The input bar is the last element in it, and overflow:hidden on body means the
page never scrolls, so the address bar never retracts and the overshoot is
never recoverable: the bar is unreachable rather than merely below the fold.

100dvh tracks the currently visible height instead. 100vh stays as the
fallback for browsers without dvh support.
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.

1 participant