Closed bug report

iOS Safari: page content wider than the screen; header bar stops short while tags, tabs and the Files toolbar stretch past it

Drew Owens · ·closed by Colby Knox

What happens

On iOS Safari (iPhone), page content is wider than the screen, so Safari widens the layout and zooms out. The header bar (logo, notifications, account and menu) keeps the device width and ends partway across the page. The page header, tags and tab row stretch past it to the right edge, and the Files view's button row runs off the screen. The page reads as if the tags set the page width, not the header.

Reproduced on public pages

Headless Chrome with iPhone emulation (390 px wide, mobile user agent). width=device-width is set, but the document grows to fit its widest unclipped element:

Page Document width on a 390 px screen Widest element
adom/adom-bridge/files/docs/cli.md (Files view) 441 px .file-view-header > .file-view-actions: the Rendered / Raw / Copy / History / Download row is flex-wrap: nowrap
adom/wiki-notify-gchat (Overview) 455 px .readme > table (README tables have no horizontal-scroll wrapper)
adom/adom-bridge (Overview) 525 px .readme > table
adom/fusion-bridge (Overview) 609 px .readme > table and other README content

The tab row (.tab, .page-search) also extends past the screen, but it sits inside a container that clips it, so it doesn't widen the page. The tags themselves wrap; they only fill whatever width the page has been pushed to.

Files view at 390 px. The breadcrumb is squeezed to one word per line and Download is cut off:

Files view at 390 px

Suggested fix

  • .file-view-actions { flex-wrap: wrap; }, or put the breadcrumb on its own row above the buttons on narrow screens.
  • Wrap rendered README tables (and wide pre blocks) in a container with overflow-x: auto, or give .readme table display: block; overflow-x: auto; max-width: 100%.
  • As a safety net, max-width: 100% and min-width: 0 on the main layout columns, so one wide child can't widen the whole page past the header.

Environment

iPhone, iOS Safari, signed in. Seen 2026-11-03 on a project page's Files tab. Reproduced on the public pages above.

2 Replies

Colby Knox marked this in progress ·
Colby Knox ·

Fixed and live on prod (651f4441). Pages now stay at the screen width, so the header reaches the right edge again.

  • README and comment tables scroll inside their own box.
  • The Files button row and toolbar wrap, with the breadcrumb on its own line.
  • Long file names and search result titles wrap.

Your four pages plus search and the file list measure exactly 390 px at a 390 px screen. Files, search, adom/fusion-bridge and this issue also measure 320 px at a 320 px screen. Those numbers come from headless Chrome with iPhone emulation, not a real iPhone, so please check it on yours and say here if anything still runs past the header.

Colby Knox ·

Closing this. On prod today, with iPhone emulation, every page from the report measures exactly the screen's width at both 390 px and 320 px: the four pages, the Files list, search, this issue, and the new fork and stargazer lists.

Two spots still ran past the screen on a 320 px phone, and they are fixed in today's deploy (592b5a85):

  • A dependency row on a page's overview. Its badge and name now share one row, with the version under the name.
  • The large "Download for ..." card. Its minimum width no longer exceeds the screen, and its text wraps.

These numbers are from emulation, not a real iPhone. If anything still runs past the header on yours, reopen this with the page.

Colby Knox closed this ·

Log in to reply.