Timeline: move the clip count out of the head into the hint/zoom row

The head's second row held only that label. It now reads "N clips · M active" (singular fixed); the selection and total time were already in the tools row.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
digital-garbage
2026-11-06 13:36:42 +02:00
co-authored by Claude Sonnet 5.5
parent f4249fda30
commit 6038b84a56
+5 -5
View File
@@ -104,17 +104,17 @@ const zoom = {
},
};
// "4 clips · 4 active · 1 selected · 00:09:19" at the far end of the zone's head.
// "4 clips · 3 active" in the row with the hint and zoom. The selection and the total time are already in the tools row.
const count = {
id: "timeline-count",
mount: "timeline.status",
needs: ["project", "selection"],
mount: "timeline.toolbar.end",
needs: ["project"],
setup({ host, app }) {
const p = app.project, sel = app.selection;
const p = app.project;
const put = inPlace(host);
const draw = () => {
const open = p.project, scenes = open ? open.scenes : [];
put(c.text.sm({ text: `${scenes.length} clips · ${scenes.filter((s) => !s.excluded).length} active · ${open ? sel.ids.length : 0} selected · ${clock(open ? totalSeconds(open) : 0)}` }).node);
put(c.hint.default({ text: `${scenes.length} ${scenes.length === 1 ? "clip" : "clips"} · ${scenes.filter((s) => !s.excluded).length} active` }).node);
};
draw();
return app.on(draw);