Skip to content

Commit

Permalink
oh shit
Browse files Browse the repository at this point in the history
  • Loading branch information
warface1234455 committed Dec 11, 2024
1 parent d04c9f6 commit e2209a2
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 13 deletions.
8 changes: 1 addition & 7 deletions tgui/packages/tgui-panel/chat/renderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,13 +94,7 @@ const updateMessageBadge = message => {
const foundBadge = node.querySelector('.Chat__badge');
const badge = foundBadge || document.createElement('div');
badge.textContent = times;
badge.className = classes([
'Chat__badge',
'Chat__badge--animate',
]);
requestAnimationFrame(() => {
badge.className = 'Chat__badge';
});
badge.className = 'Chat__badge';
if (!foundBadge) {
node.appendChild(badge);
}
Expand Down
6 changes: 0 additions & 6 deletions tgui/packages/tgui-panel/styles/components/Chat.scss
Original file line number Diff line number Diff line change
Expand Up @@ -27,18 +27,12 @@ $color-bg-section: base.$color-bg-section !default;
vertical-align: middle;
background-color: crimson;
border-radius: 10px;
transition: font-size 200ms ease-out;

&:before {
content: 'x';
}
}

.Chat__badge--animate {
font-size: 0.9em;
transition: font-size 0ms;
}

.Chat__scrollButton {
position: fixed;
right: 2em;
Expand Down

0 comments on commit e2209a2

Please sign in to comment.