From e2209a2e2c7c0c5621c8e0554a5678338db751f0 Mon Sep 17 00:00:00 2001 From: Bop Date: Wed, 11 Dec 2024 22:48:42 +0700 Subject: [PATCH] oh shit --- tgui/packages/tgui-panel/chat/renderer.js | 8 +------- tgui/packages/tgui-panel/styles/components/Chat.scss | 6 ------ 2 files changed, 1 insertion(+), 13 deletions(-) diff --git a/tgui/packages/tgui-panel/chat/renderer.js b/tgui/packages/tgui-panel/chat/renderer.js index b95066116053..69ffa34088a1 100644 --- a/tgui/packages/tgui-panel/chat/renderer.js +++ b/tgui/packages/tgui-panel/chat/renderer.js @@ -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); } diff --git a/tgui/packages/tgui-panel/styles/components/Chat.scss b/tgui/packages/tgui-panel/styles/components/Chat.scss index b439ace8c58f..1a8d71718448 100644 --- a/tgui/packages/tgui-panel/styles/components/Chat.scss +++ b/tgui/packages/tgui-panel/styles/components/Chat.scss @@ -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;