From 3756010f40b2c79f473c715920a503a33ce51c1f Mon Sep 17 00:00:00 2001 From: Hakadao Date: Fri, 1 Sep 2023 02:45:27 +0800 Subject: [PATCH] feat: add smooth background transition from homepage to search page --- src/contentScripts/views/App.vue | 68 ++++++++++++++++---------------- 1 file changed, 35 insertions(+), 33 deletions(-) diff --git a/src/contentScripts/views/App.vue b/src/contentScripts/views/App.vue index a3254815..6ade810d 100644 --- a/src/contentScripts/views/App.vue +++ b/src/contentScripts/views/App.vue @@ -129,9 +129,9 @@ onMounted(() => { }) if (isBilibiliHomePage.value) { - // Force overwrite Bilibili Evolved body tag & html tag background color - document.body.style.setProperty('background-color', 'unset', 'important'); - document.documentElement.style.setProperty('background-color', 'unset', 'important'); + // Force overwrite Bilibili Evolved body tag & html tag background color + document.body.style.setProperty('background-color', 'unset', 'important') + document.documentElement.style.setProperty('background-color', 'unset', 'important') } if (mainAppRef.value) { @@ -255,40 +255,42 @@ function handleBackToTop() {