From 4ea67a31489d81076d020a5ddb4630dc232ba3fc Mon Sep 17 00:00:00 2001 From: Hakadao Date: Sun, 30 Jun 2024 14:52:11 +0800 Subject: [PATCH] fix: remove white bar appearing on some pages --- src/contentScripts/index.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/contentScripts/index.ts b/src/contentScripts/index.ts index 00517e1b..b172d3af 100644 --- a/src/contentScripts/index.ts +++ b/src/contentScripts/index.ts @@ -118,6 +118,12 @@ if (isSupportedPages()) { visibility: hidden; height: var(--bew-top-bar-height) !important; } + + /* some pages have a white bar at the top; changing the top margin fixes this problem */ + .banner-wrapper, + .home-banner-wrapper { + margin-top: calc(-1 * var(--bew-top-bar-height)) !important; + } `) }