ui: reverse kill log order and enable scrolling
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user