mirror of
https://github.com/the1812/Bilibili-Evolved.git
synced 2025-11-04 21:22:45 +08:00
Fix styles in history page (fix #4459)
This commit is contained in:
parent
d13865099f
commit
d6b079ce1e
@ -43,6 +43,10 @@ export const entry: ComponentEntry = async ({ metadata: { name } }) => {
|
||||
true,
|
||||
)
|
||||
}
|
||||
// https://github.com/the1812/Bilibili-Evolved/issues/4459
|
||||
if (matchUrlPattern('https://www.bilibili.com/account/history')) {
|
||||
document.body.classList.add('history-page')
|
||||
}
|
||||
const CustomNavbar = await import('./CustomNavbar.vue')
|
||||
const customNavbar: Vue & {
|
||||
styles: string[]
|
||||
|
||||
@ -32,10 +32,13 @@ li.nav-item[report-id="playpage_dynamic"] .i-frame,
|
||||
height: var(--navbar-height) !important;
|
||||
}
|
||||
#message-navbar,
|
||||
#biliMainHeader:not(.z-top-container),
|
||||
body:not(.history-page) #biliMainHeader:not(.z-top-container),
|
||||
.z-top-container:not(#biliMainHeader) {
|
||||
max-height: var(--navbar-height) !important;
|
||||
}
|
||||
body.history-page #biliMainHeader:not(.z-top-container) {
|
||||
height: auto;
|
||||
}
|
||||
.link-top-container#tab-container {
|
||||
top: var(--navbar-height) !important;
|
||||
}
|
||||
|
||||
@ -27,6 +27,9 @@ export const checkTransparentFill = async (vm: {
|
||||
if ((banner as HTMLVideoElement | HTMLImageElement).src) {
|
||||
return true
|
||||
}
|
||||
if (banner.querySelector('.animated-banner')) {
|
||||
return true
|
||||
}
|
||||
return false
|
||||
}
|
||||
if (banners.some(hasBannerImage)) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user