feat(ui): reverse live activity feed to render chronological newest at the top

This commit is contained in:
Riz Ashraf committed 2026-09-27 22:55:18 +01:00
1 parent 91055b1eda
commit ecfb0ebcd5
1 file changed
+4 -4
+4 -4
View File
@@ -612,7 +612,7 @@
loadGraph(); loadGraph();
} else if (tabId === 'activity-tab') { } else if (tabId === 'activity-tab') {
const feed = document.getElementById('activity-feed'); const feed = document.getElementById('activity-feed');
feed.scrollTop = feed.scrollHeight; feed.scrollTop = 0;
} else if (tabId === 'task-tab') { } else if (tabId === 'task-tab') {
loadTasks(); loadTasks();
} else if (tabId === 'sticky-tab') { } else if (tabId === 'sticky-tab') {
@@ -985,7 +985,7 @@
feed.appendChild(div); feed.appendChild(div);
}); });
if (history.length > 0) { if (history.length > 0) {
feed.scrollTop = feed.scrollHeight; feed.scrollTop = 0;
} }
} catch(e) {} } catch(e) {}
} }
@@ -1014,8 +1014,8 @@
} }
// Auto-scroll logic // Auto-scroll logic
if (isScrolledToBottom) { if (isScrolledToTop) {
feed.scrollTop = feed.scrollHeight; feed.scrollTop = 0;
} }
} }
} catch (e) { } catch (e) {