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

#272 Fit a duration in the view, from its menu or its details (#268)

–

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

Closes #268. - **Right-click (or long-press) a duration:** the menu now offers **Fit in view** to anyone who can see the duration, not only editors. - **The duration's details panel and the read-only reader** both get a **Fit in view** button beside Share. - **The view** spans the duration with the same margin as **Fit all** (`Viewport.fit`: 40 % beyond its length, split between both sides). `fitDuration` looks for the duration's band in the current window first, including a comparison's, then in the document. It does nothing for a duration it can't find. ## Tests - `test/duration-backgrounds-browser.mjs`: right-click the 100–200 duration, choose **Fit in view**, and the view spans 80–220, give or take the rounding to whole pixels. - `test/summaries-browser.mjs`: the duration menu's item list includes **Fit in view**. - `npm test` passes. `test/browser.mjs` passes in Chromium and Firefox. In WebKit it hit the known flaky drafts check (#271) before reaching these tests. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_011fFY8eruEi1xAkkMBni13B https://github.com/openchronology/timeline-app/pull/272

Related

Open #272 Fit a duration in the view, from its menu or its details (#268) in the timeline

#272 Fit a duration in the view, from its menu or its…