Compare commits
No commits in common. "353dc6738ba1fbcdc405e0dcf8d579d1fb4213b7" and "f459585cec32afc55e4353604993db23301296d6" have entirely different histories.
353dc6738b
...
f459585cec
|
|
@ -1069,9 +1069,7 @@ input[type="range"] {
|
||||||
z-index: 4;
|
z-index: 4;
|
||||||
width: min(370px, calc(100vw - 32px));
|
width: min(370px, calc(100vw - 32px));
|
||||||
max-height: min(34vh, 292px);
|
max-height: min(34vh, 292px);
|
||||||
overflow-y: auto;
|
overflow: hidden;
|
||||||
scrollbar-width: thin;
|
|
||||||
scrollbar-color: rgb(238 185 73 / 0.3) transparent;
|
|
||||||
border: 1px solid rgb(238 185 73 / 0.2);
|
border: 1px solid rgb(238 185 73 / 0.2);
|
||||||
border-radius: 8px;
|
border-radius: 8px;
|
||||||
padding: 10px;
|
padding: 10px;
|
||||||
|
|
@ -1085,28 +1083,15 @@ input[type="range"] {
|
||||||
backdrop-filter: blur(10px);
|
backdrop-filter: blur(10px);
|
||||||
}
|
}
|
||||||
|
|
||||||
.kill-log::-webkit-scrollbar {
|
|
||||||
width: 4px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.kill-log::-webkit-scrollbar-track {
|
|
||||||
background: transparent;
|
|
||||||
}
|
|
||||||
|
|
||||||
.kill-log::-webkit-scrollbar-thumb {
|
|
||||||
border-radius: 10px;
|
|
||||||
background: rgb(238 185 73 / 0.3);
|
|
||||||
}
|
|
||||||
|
|
||||||
#app.match-live .kill-log.has-entries {
|
#app.match-live .kill-log.has-entries {
|
||||||
opacity: 1;
|
opacity: 1;
|
||||||
pointer-events: auto;
|
|
||||||
transform: translateY(0);
|
transform: translateY(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
.kill-log-list {
|
.kill-log-list {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
|
justify-content: flex-end;
|
||||||
gap: 6px;
|
gap: 6px;
|
||||||
min-height: 0;
|
min-height: 0;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
const KILL_LOG_LIMIT = 30;
|
const KILL_LOG_LIMIT = 8;
|
||||||
|
|
||||||
export function resetKillLog(nodes) {
|
export function resetKillLog(nodes) {
|
||||||
const { logNode, listNode } = nodes;
|
const { logNode, listNode } = nodes;
|
||||||
|
|
@ -45,10 +45,10 @@ export function appendKillLog(nodes, winner, defender) {
|
||||||
action,
|
action,
|
||||||
createKillLogFighterNode(victim, "victim"),
|
createKillLogFighterNode(victim, "victim"),
|
||||||
);
|
);
|
||||||
listNode.prepend(item);
|
listNode.append(item);
|
||||||
|
|
||||||
while (listNode.children.length > KILL_LOG_LIMIT) {
|
while (listNode.children.length > KILL_LOG_LIMIT) {
|
||||||
listNode.lastElementChild?.remove();
|
listNode.firstElementChild?.remove();
|
||||||
}
|
}
|
||||||
|
|
||||||
logNode.classList.add("has-entries");
|
logNode.classList.add("has-entries");
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue