From ecfb0ebcd55d58f2c111b11b673aceca87d622fb Mon Sep 17 00:00:00 2001 From: Riz Ashraf Date: Sun, 27 Sep 2026 22:55:18 +0100 Subject: [PATCH] feat(ui): reverse live activity feed to render chronological newest at the top --- server/src/dashboard.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/server/src/dashboard.html b/server/src/dashboard.html index 34b9395..02f936f 100644 --- a/server/src/dashboard.html +++ b/server/src/dashboard.html @@ -612,7 +612,7 @@ loadGraph(); } else if (tabId === 'activity-tab') { const feed = document.getElementById('activity-feed'); - feed.scrollTop = feed.scrollHeight; + feed.scrollTop = 0; } else if (tabId === 'task-tab') { loadTasks(); } else if (tabId === 'sticky-tab') { @@ -985,7 +985,7 @@ feed.appendChild(div); }); if (history.length > 0) { - feed.scrollTop = feed.scrollHeight; + feed.scrollTop = 0; } } catch(e) {} } @@ -1014,8 +1014,8 @@ } // Auto-scroll logic - if (isScrolledToBottom) { - feed.scrollTop = feed.scrollHeight; + if (isScrolledToTop) { + feed.scrollTop = 0; } } } catch (e) {