From eddf3c6accd7a8e8188caaa6d4431d367f5af826 Mon Sep 17 00:00:00 2001 From: Ethanfel Date: Thu, 26 Feb 2026 13:05:20 +0100 Subject: [PATCH] Fix inverted expand/collapse arrows on timeline MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The timeline grows upward, so show ▴ when collapsed and ▾ when expanded. Co-Authored-By: Claude Opus 4.6 --- js/snapshot_manager.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/js/snapshot_manager.js b/js/snapshot_manager.js index f6e8868..64b2446 100644 --- a/js/snapshot_manager.js +++ b/js/snapshot_manager.js @@ -3536,11 +3536,11 @@ function buildTimeline() { const expandBtn = document.createElement("button"); 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.addEventListener("click", () => { timelineExpanded = !timelineExpanded; - expandBtn.textContent = timelineExpanded ? "\u25B4" : "\u25BE"; + expandBtn.textContent = timelineExpanded ? "\u25BE" : "\u25B4"; expandBtn.title = timelineExpanded ? "Collapse timeline" : "Expand timeline to show all branches"; bar.classList.toggle("snap-timeline-expanded", timelineExpanded); refresh(); @@ -3593,7 +3593,7 @@ function buildTimeline() { if (!branchingEnabled && timelineExpanded) { timelineExpanded = false; bar.classList.remove("snap-timeline-expanded"); - expandBtn.textContent = "\u25BE"; + expandBtn.textContent = "\u25B4"; } const allRecords = await db_getAllForWorkflow(getWorkflowKey());