From 3bdd8ee4d9623f3539ace261dc488863c8071c75 Mon Sep 17 00:00:00 2001 From: the1812 Date: Sun, 14 Jan 2024 18:47:07 +0800 Subject: [PATCH] Update for new search page --- registry/lib/components/style/custom-navbar/CustomNavbar.vue | 3 ++- src/components/launch-bar/LaunchBar.vue | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/registry/lib/components/style/custom-navbar/CustomNavbar.vue b/registry/lib/components/style/custom-navbar/CustomNavbar.vue index f25f36241..919b1f73a 100644 --- a/registry/lib/components/style/custom-navbar/CustomNavbar.vue +++ b/registry/lib/components/style/custom-navbar/CustomNavbar.vue @@ -121,7 +121,8 @@ body.fixed-navbar { top: calc(var(--navbar-height) + 8px) !important; } } - .bili-feed4 .header-channel { + .bili-feed4 .header-channel, + .search-fixed-header { display: none !important; } } diff --git a/src/components/launch-bar/LaunchBar.vue b/src/components/launch-bar/LaunchBar.vue index 91f415db3..8d0a7d145 100644 --- a/src/components/launch-bar/LaunchBar.vue +++ b/src/components/launch-bar/LaunchBar.vue @@ -166,7 +166,7 @@ export default Vue.extend({ if (!matchUrlPattern(/^https?:\/\/search\.bilibili\.com/)) { return } - select('#search-keyword').then((input: HTMLInputElement) => { + select('#search-keyword, .search-input-el').then((input: HTMLInputElement) => { if (!input) { return }