Skip to content

The element between the app and the views can shrink, so pages scroll on a phone - #333

Merged
mattshax merged 1 commit into
mainfrom
content-min-height
Sep 8, 2026
Merged

The element between the app and the views can shrink, so pages scroll on a phone#333
mattshax merged 1 commit into
mainfrom
content-min-height

Conversation

@mattshax

@mattshax mattshax commented Sep 8, 2026

Copy link
Copy Markdown
Member

Measured in a headless browser at 390x844 rather than guessed at.

main.content, between .app-body and the views, is a flex item whose default min-height: auto refuses to shrink below its content. In the phone's column layout that let a tall page grow the whole layout past the viewport: Settings measured 2102px inside an 844px app, which pushed the navigation bar off-screen (nav@2143) and left nothing able to scroll, because .help-content and the other per-view scrollers never received a bounded height to work against. Chat looked fine only because its content already fits.

main.content { min-height: 0; min-width: 0 } fixes it. Re-measured across every view, each now reporting an app that fits the viewport, the bar on the bottom edge, and a working inner scroller:

chat      OK  app=844/844 nav@844
settings  OK  app=844/844 nav@844  help-content:735/2033*
help      OK  app=844/844 nav@844
library   OK  app=844/844 nav@844  explorer:286/822*
stats     OK  app=844/844 nav@844
agents    OK  app=844/844 nav@844
search    OK  app=844/844 nav@844
query     OK  app=844/844 nav@844

… pages scroll

Measured in a headless browser at phone size rather than guessed: the
main element that holds the views is a flex item whose default
min-height is auto, which refuses to shrink below its content. In the
phone's column that let a tall page grow the layout past the viewport,
Settings measured 2102px inside an 844px app, which carried the
navigation bar off-screen and left nothing able to scroll, because the
scrolling containers inside each view never got a bounded height to
work against. With min-height zero every view now fits the viewport and
its own scroller does the work: verified across chat, settings, help,
library, stats, agents, search, and query, each reporting an app that
fits and a navigation bar on the bottom edge.
@mattshax
mattshax merged commit 750903d into main Sep 8, 2026
1 check passed
@mattshax
mattshax deleted the content-min-height branch September 8, 2026 04:03
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