Skip to content

Commit

Permalink
Fix styles in history page (fix #4459)
Browse files Browse the repository at this point in the history
  • Loading branch information
the1812 committed Nov 19, 2023
1 parent d138650 commit d6b079c
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
4 changes: 4 additions & 0 deletions registry/lib/components/style/custom-navbar/entry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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[]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit d6b079c

Please sign in to comment.