diff --git a/public/resources/styles/themes/default.css b/public/resources/styles/themes/default.css index 93ff82f..45f6fb9 100644 --- a/public/resources/styles/themes/default.css +++ b/public/resources/styles/themes/default.css @@ -19,8 +19,10 @@ body { } .ads-container { - flex: 1; display: none; + flex: 1; + align-items: center; + justify-content: center; } .launcher { diff --git a/src/resources/scripts/main.ts b/src/resources/scripts/main.ts index 7386995..2cd329b 100644 --- a/src/resources/scripts/main.ts +++ b/src/resources/scripts/main.ts @@ -341,7 +341,7 @@ if (window.location.pathname === '/') { const adsContainers = document.getElementsByClassName('ads-container'); for (let i = 0; i < adsContainers.length; i++) { const adsContainer = adsContainers[i] as HTMLElement; - adsContainer.style.display = 'block'; + adsContainer.style.display = 'flex'; } }); }