feat(ui): reverse live activity feed to render chronological newest at the top
This commit is contained in:
1 parent
91055b1eda
commit
ecfb0ebcd5
1 file changed
+4
-4
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user