ui: reverse kill log order and enable scrolling

This commit is contained in:
2026-05-23 13:48:36 +09:00
parent f459585cec
commit 55132ed662
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -45,10 +45,10 @@ export function appendKillLog(nodes, winner, defender) {
action,
createKillLogFighterNode(victim, "victim"),
);
listNode.append(item);
listNode.prepend(item);
while (listNode.children.length > KILL_LOG_LIMIT) {
listNode.firstElementChild?.remove();
listNode.lastElementChild?.remove();
}
logNode.classList.add("has-entries");