mirror of
https://github.com/BewlyBewly/BewlyBewly.git
synced 2025-04-14 13:15:29 +00:00
refactor: rename isShowTopbar to showTopBar && rename autoHideTopbar to autoHideTopBar
This commit is contained in:
@@ -270,14 +270,14 @@ provide('scrollbarRef', scrollbarRef)
|
||||
<div m-auto max-w="$bew-page-max-width">
|
||||
<Transition name="top-bar">
|
||||
<TopBar
|
||||
v-if="settings.isShowTopbar && !isHomePage()"
|
||||
v-if="settings.showTopBar && !isHomePage()"
|
||||
pos="top-0 left-0" z="99 hover:1001" w-full
|
||||
:style="{ position: isTopBarFixed ? 'fixed' : 'absolute' }"
|
||||
:show-search-bar="!isSearchPage"
|
||||
:mask="showTopBarMask"
|
||||
/>
|
||||
<TopBar
|
||||
v-else-if="settings.isShowTopbar && isHomePage()"
|
||||
v-else-if="settings.showTopBar && isHomePage()"
|
||||
ref="topBarRef"
|
||||
:show-search-bar="showTopBarMask && settings.useSearchPageModeOnHomePage || (!settings.useSearchPageModeOnHomePage && activatedPage !== AppPage.Search || activatedPage !== AppPage.Home && activatedPage !== AppPage.Search)"
|
||||
:show-logo="showTopBarMask && settings.useSearchPageModeOnHomePage || (!settings.useSearchPageModeOnHomePage || activatedPage !== AppPage.Home)"
|
||||
|
||||
@@ -49,7 +49,7 @@ onMounted(async () => {
|
||||
// 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 (settings.value.autoHideTopBar && settings.value.showTopBar) {
|
||||
if (val)
|
||||
shouldMoveCtrlBarUp.value = false
|
||||
|
||||
|
||||
@@ -62,7 +62,7 @@ onMounted(() => {
|
||||
// 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 (settings.value.autoHideTopBar && settings.value.showTopBar) {
|
||||
if (val)
|
||||
shouldMoveTabsUp.value = false
|
||||
|
||||
|
||||
@@ -62,7 +62,7 @@ onMounted(() => {
|
||||
// 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 (settings.value.autoHideTopBar && settings.value.showTopBar) {
|
||||
if (val)
|
||||
shouldMoveAsideUp.value = false
|
||||
|
||||
|
||||
Reference in New Issue
Block a user