Skip to content

Commit 86a0640

Browse files
eli-yipclaude
andcommitted
fix(top-bar): hide dock & sidebar in web fullscreen on bangumi pages
Entering web fullscreen hid the top bar but left the floating dock / side buttons painted over the video on bangumi pages (`/bangumi/play/`), the same root cause as the top bar issue. Reuse useWebFullscreen to hide the whole Dock & SideBar container as well. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
1 parent adcc008 commit 86a0640

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

src/contentScripts/views/App.vue

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import type { Ref } from 'vue'
44
55
import type { BewlyAppProvider } from '~/composables/useAppProvider'
66
import { useDark } from '~/composables/useDark'
7+
import { useWebFullscreen } from '~/composables/useWebFullscreen'
78
import { BEWLY_MOUNTED, DRAWER_VIDEO_ENTER_PAGE_FULL, DRAWER_VIDEO_EXIT_PAGE_FULL, IFRAME_PAGE_SWITCH_BEWLY, IFRAME_PAGE_SWITCH_BILI, OVERLAY_SCROLL_BAR_SCROLL } from '~/constants/globalEvents'
89
import { AppPage } from '~/enums/appEnums'
910
import { settings } from '~/logic'
@@ -386,6 +387,9 @@ watchEffect(async (onCleanUp) => {
386387
})
387388
})
388389
390+
// Hide the floating dock / sidebar when entering web fullscreen (网页全屏), same as the top bar.
391+
const { isWebFullscreen } = useWebFullscreen()
392+
389393
provide<BewlyAppProvider>('BEWLY_APP', {
390394
activatedPage,
391395
mainAppRef,
@@ -619,7 +623,7 @@ document.head.appendChild(removeLeftQuoteIndent)
619623

620624
<!-- Dock & RightSideButtons -->
621625
<div
622-
v-if="!isInIframe()"
626+
v-if="!isInIframe() && !isWebFullscreen"
623627
pos="absolute top-0 left-0" w-full h-full overflow-hidden
624628
pointer-events-none
625629
>

0 commit comments

Comments
 (0)