From 8127ca2fcc80d336dfbc69c89d26289f9bf32645 Mon Sep 17 00:00:00 2001 From: the1812 Date: Fri, 24 Nov 2023 08:28:18 +0800 Subject: [PATCH] Exclude fixed navbar on new articles (fix #4540) --- registry/lib/components/style/custom-navbar/entry.ts | 1 + registry/lib/components/style/custom-navbar/hide-original.scss | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/registry/lib/components/style/custom-navbar/entry.ts b/registry/lib/components/style/custom-navbar/entry.ts index 3646458d0c..4318daa332 100644 --- a/registry/lib/components/style/custom-navbar/entry.ts +++ b/registry/lib/components/style/custom-navbar/entry.ts @@ -32,6 +32,7 @@ export const entry: ComponentEntry = async ({ metadata: { name } }) => { const globalFixedExclude = [ 'https://space.bilibili.com', 'https://www.bilibili.com/read', + 'https://www.bilibili.com/opus', 'https://www.bilibili.com/account/history', ] if (!globalFixedExclude.some(p => matchUrlPattern(p))) { diff --git a/registry/lib/components/style/custom-navbar/hide-original.scss b/registry/lib/components/style/custom-navbar/hide-original.scss index 1371e72a0a..9a970c9f6d 100644 --- a/registry/lib/components/style/custom-navbar/hide-original.scss +++ b/registry/lib/components/style/custom-navbar/hide-original.scss @@ -39,8 +39,7 @@ body:not(.history-page) #biliMainHeader:not(.z-top-container), body.history-page #biliMainHeader:not(.z-top-container) { height: auto; } -.link-top-container#tab-container, -.fixed-author-header { +.link-top-container#tab-container { top: var(--navbar-height) !important; } .bili-feed4 .header-channel{