Skip to content

fix(web): stop the page dragging sideways on narrow screens - #16

Open
Antisophy wants to merge 1 commit into
CyberShadow:masterfrom
Antisophy:fix/mobile-horizontal-overflow
Open

fix(web): stop the page dragging sideways on narrow screens#16
Antisophy wants to merge 1 commit into
CyberShadow:masterfrom
Antisophy:fix/mobile-horizontal-overflow

Conversation

@Antisophy

Copy link
Copy Markdown
Contributor

On a phone the whole page can be dragged sideways, header and all, with empty space appearing at the right edge.

The banner's right-hand cluster is what widens it. Measured at a 390px viewport, the rename button, status and theme toggle together occupy 509px, and since a flex item defaults to min-width: auto the cluster refuses to shrink below its contents, taking the document to 525px.

Letting it shrink, and letting the status text ellipsize, brings the document back to exactly the viewport width (measured: 525px to 390px).

overflow-x: hidden at the root is a backstop for the same class of problem: the panes that genuinely scroll sideways (code blocks, tables) scroll inside themselves, so horizontal give at the document level is always an overflowing child dragging the page rather than something worth panning.

On a phone the whole page can be dragged horizontally, header and all, with
black space appearing at the right edge. The banner's right-hand cluster is
what widens it: rename button, status and theme toggle measure 509px against
a 390px viewport, and a flex item defaults to min-width:auto, so the cluster
refuses to shrink below its contents and takes the document to 525px.

Let it shrink and let the status text ellipsize, which brings the document
back to exactly the viewport width. Hide horizontal overflow at the root as
well: the panes that need sideways scrolling (code blocks, tables) scroll
inside themselves, so give at the document level is always an overflowing
child rather than something worth dragging.
@Antisophy

Antisophy commented Aug 21, 2026

Copy link
Copy Markdown
Contributor Author

One of five independent changes for using cydo on a phone, split apart so each can be judged on its own:

They touch different code and can merge in any order.

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