One event dialog: the duration form is a panel beside the moment's (#215)
- github
- github/openchronology/timeline-app
- commit
- main
- github/athanclark
Switching a new event to Duration closed one modal dialog and opened another; each made the browser restyle the whole page (about 58 ms apiece at 4x CPU throttling on 1,000 moments), and the moment dialog's close redrew the timeline. The duration form is now a panel in the event dialog: switching shows one panel and hides the other, and nothing modal changes. A small stand-in (durationDialog) keeps the duration dialog's open, showModal() and close() for its callers. A duration opened over a moment or group (from its details) returns to it on Save, Cancel, x or Escape; one opened alone closes the dialog. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_011fFY8eruEi1xAkkMBni13B https://github.com/openchronology/timeline-app/commit/7461c6eb59256f17f07d83840c00806901fd46dd
Related
Open One event dialog: the duration form is a panel beside the moment's (#215) in the timeline