Skip to content

Commit bf79545

Browse files
fix(style): ensure widgetbot doesn't add padding below footers (#44)
1 parent d87beb8 commit bf79545

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/js/discord.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,15 @@ function initDiscord() {
1818
defer: false,
1919
});
2020

21+
// Apply CSS position change directly in JavaScript
22+
const style = document.createElement('style');
23+
style.innerHTML = `
24+
widgetbot-crate {
25+
position: fixed !important;
26+
}
27+
`;
28+
document.head.appendChild(style);
29+
2130
// get random video game quotes and notify the user on Widgetbot after 7 minutes
2231
fetchRandomQuote().then(quote => {
2332
setTimeout(() => {

0 commit comments

Comments
 (0)