('')
@@ -38,11 +40,27 @@ onMounted(async () => {
favoriteResources.length = 0
handleSearch()
})
+ emitter.off('topbarVisibleChange')
+ emitter.on('topbarVisibleChange', (val) => {
+ shouldMoveCtrlBarUp.value = false
+
+ // Allow moving tabs up only when the top bar is not hidden & is set to auto-hide
+ // This feature is primarily designed to compatible with the Bilibili Evolved's top bar
+ // Even when the BewlyBewly top bar is hidden, the Bilibili Evolved top bar still exists, so not moving up
+ if (settings.value.autoHideTopbar && settings.value.isShowTopbar) {
+ if (val)
+ shouldMoveCtrlBarUp.value = false
+
+ else
+ shouldMoveCtrlBarUp.value = true
+ }
+ })
})
onUnmounted(() => {
emitter.off('reachBottom')
emitter.off('pageRefresh')
+ emitter.off('topbarVisibleChange')
})
async function getFavoriteCategories() {
@@ -151,7 +169,8 @@ function handleUnfavorite(favoriteResource: FavoriteResource) {
-->