refactor: use --bew-top-bar-height to set the bewly top bar height

This commit is contained in:
hakadao
2024-06-16 18:35:07 +08:00
parent 36f6bd55fd
commit f1de0d5bfa
3 changed files with 10 additions and 4 deletions

View File

@@ -107,13 +107,15 @@ if (settings.value.adaptToOtherPageStyles && isHomePage()) {
}
if (isSupportedPages()) {
// remove the original top bar
// remove the original top bar and adjust the height of the top bar to match the bewly top bar
injectCSS(`
.bili-header .bili-header__bar,
#internationalHeader,
.link-navbar,
#home_nav {
#home_nav,
#biliMainHeader {
visibility: hidden;
height: var(--bew-top-bar-height) !important;
}
`)
}