circagraph
Sign inSign up

openchronology/timeline-app on GitHub

The OpenChronology repository on GitHub, mirrored by och-import-github: issues and pull requests as durations (ongoing while open), what happened to them as moments, plus releases, milestones, commits and branches. The Branches view shows the most recently active branches each in a track of its own.

Source: https://github.com/openchronology/timeline-app

3,131 moments · 2026-10-05 CE 20:21:49 UTC – 2026-11-16 CE 12:10:45 UTC · by @athan · @athan

#446 Phones paint the header and toolbars in their phone layout from the first frame

–

  • github
  • github/openchronology/timeline-app
  • github/openchronology/timeline-app#446
  • pull request
  • state:merged

On a phone, each page load showed the desktop layout and then rearranged it once the scripts ran: - **Site header:** the links sat in the header, wrapped onto a second row, until React loaded and moved them into the side menu. The head's first inline script now marks ` ` with `scripted` before the page paints, and the stylesheet lays out the menu button and side panel from that class, not from React's `data-ready`. Without JavaScript the class is missing, so the links still show in the header. - **Editor toolbars:** every control showed in its desktop place until `toolbar-menus.ts` moved it into File or Tools. Each of those controls now carries `data-phone-menu`. On a phone they stay hidden until moved, and the Tools button shows from the start (CSS hides it on wide screens). - **Amber in-memory notice:** until `/api/session` answered, everyone looked like a guest, so a signed-in visitor saw the notice briefly. It now waits until the session is known. Guests still see it. The CSS keeps its existing max-width breakpoints. The flicker came from layout that waited on scripts, not from the direction of the media queries. Tests: - `mobile-toolbar-browser.mjs` loads a phone-sized editor with `app.js` blocked and checks that the first paint is already the phone row. - `site-menu-live-postgres.mjs` loads a phone page with Next's chunks blocked and checks for one header row, the menu button, and no links showing. - Locally: 30 of 30 browser tests and the site menu live test pass. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_011fFY8eruEi1xAkkMBni13B https://github.com/openchronology/timeline-app/pull/446

Related

Open #446 Phones paint the header and toolbars in their phone layout from the first frame in the timeline

#446 Phones paint the header and toolbars in their phone…