mirror of
https://github.com/BewlyBewly/BewlyBewly.git
synced 2025-04-14 13:15:29 +00:00
refactor: use --bew-top-bar-height to set the bewly top bar height
This commit is contained in:
@@ -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;
|
||||
}
|
||||
`)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user