Skip to content
This repository was archived by the owner on May 22, 2025. It is now read-only.

Commit e2209a2

Browse files
oh shit
1 parent d04c9f6 commit e2209a2

File tree

2 files changed

+1
-13
lines changed

2 files changed

+1
-13
lines changed

tgui/packages/tgui-panel/chat/renderer.js

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -94,13 +94,7 @@ const updateMessageBadge = message => {
9494
const foundBadge = node.querySelector('.Chat__badge');
9595
const badge = foundBadge || document.createElement('div');
9696
badge.textContent = times;
97-
badge.className = classes([
98-
'Chat__badge',
99-
'Chat__badge--animate',
100-
]);
101-
requestAnimationFrame(() => {
102-
badge.className = 'Chat__badge';
103-
});
97+
badge.className = 'Chat__badge';
10498
if (!foundBadge) {
10599
node.appendChild(badge);
106100
}

tgui/packages/tgui-panel/styles/components/Chat.scss

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,18 +27,12 @@ $color-bg-section: base.$color-bg-section !default;
2727
vertical-align: middle;
2828
background-color: crimson;
2929
border-radius: 10px;
30-
transition: font-size 200ms ease-out;
3130

3231
&:before {
3332
content: 'x';
3433
}
3534
}
3635

37-
.Chat__badge--animate {
38-
font-size: 0.9em;
39-
transition: font-size 0ms;
40-
}
41-
4236
.Chat__scrollButton {
4337
position: fixed;
4438
right: 2em;

0 commit comments

Comments
 (0)