Fix inverted expand/collapse arrows on timeline
The timeline grows upward, so show ▴ when collapsed and ▾ when expanded. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -3536,11 +3536,11 @@ function buildTimeline() {
|
|||||||
|
|
||||||
const expandBtn = document.createElement("button");
|
const expandBtn = document.createElement("button");
|
||||||
expandBtn.className = "snap-timeline-snap-btn snap-timeline-expand-btn";
|
expandBtn.className = "snap-timeline-snap-btn snap-timeline-expand-btn";
|
||||||
expandBtn.textContent = "\u25BE";
|
expandBtn.textContent = "\u25B4";
|
||||||
expandBtn.title = "Expand timeline to show all branches";
|
expandBtn.title = "Expand timeline to show all branches";
|
||||||
expandBtn.addEventListener("click", () => {
|
expandBtn.addEventListener("click", () => {
|
||||||
timelineExpanded = !timelineExpanded;
|
timelineExpanded = !timelineExpanded;
|
||||||
expandBtn.textContent = timelineExpanded ? "\u25B4" : "\u25BE";
|
expandBtn.textContent = timelineExpanded ? "\u25BE" : "\u25B4";
|
||||||
expandBtn.title = timelineExpanded ? "Collapse timeline" : "Expand timeline to show all branches";
|
expandBtn.title = timelineExpanded ? "Collapse timeline" : "Expand timeline to show all branches";
|
||||||
bar.classList.toggle("snap-timeline-expanded", timelineExpanded);
|
bar.classList.toggle("snap-timeline-expanded", timelineExpanded);
|
||||||
refresh();
|
refresh();
|
||||||
@@ -3593,7 +3593,7 @@ function buildTimeline() {
|
|||||||
if (!branchingEnabled && timelineExpanded) {
|
if (!branchingEnabled && timelineExpanded) {
|
||||||
timelineExpanded = false;
|
timelineExpanded = false;
|
||||||
bar.classList.remove("snap-timeline-expanded");
|
bar.classList.remove("snap-timeline-expanded");
|
||||||
expandBtn.textContent = "\u25BE";
|
expandBtn.textContent = "\u25B4";
|
||||||
}
|
}
|
||||||
|
|
||||||
const allRecords = await db_getAllForWorkflow(getWorkflowKey());
|
const allRecords = await db_getAllForWorkflow(getWorkflowKey());
|
||||||
|
|||||||
Reference in New Issue
Block a user