From 95cb3e3b5e310406460a74286ed927c02445a120 Mon Sep 17 00:00:00 2001 From: ReenigneArcher <42013603+ReenigneArcher@users.noreply.github.com> Date: Sat, 21 Sep 2024 15:13:48 -0400 Subject: [PATCH] fix(style): ensure widgetbot doesn't add padding below footers --- src/js/discord.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/js/discord.js b/src/js/discord.js index 1822afc..43907ea 100644 --- a/src/js/discord.js +++ b/src/js/discord.js @@ -18,6 +18,15 @@ function initDiscord() { defer: false, }); + // Apply CSS position change directly in JavaScript + const style = document.createElement('style'); + style.innerHTML = ` + widgetbot-crate { + position: fixed !important; + } + `; + document.head.appendChild(style); + // get random video game quotes and notify the user on Widgetbot after 7 minutes fetchRandomQuote().then(quote => { setTimeout(() => {