fix: clicking on video cover does not navigate to video playback page

This commit is contained in:
Hakadao
2023-12-06 14:44:04 +08:00
parent f37026519f
commit 60545b030f

View File

@@ -103,6 +103,7 @@ function toggleWatchLater() {
function handleMouseEnter() {
isHover.value = true
clearTimeout(mouseLeaveTimeOut.value)
contentVisibility.value = 'visible'
}
@@ -199,6 +200,7 @@ function handelMouseLeave() {
v-if="previewVideoUrl && isHover"
autoplay muted
:controls="settings.enableVideoCtrlBarOnVideoCard"
:style="{ pointerEvents: settings.enableVideoCtrlBarOnVideoCard ? 'auto' : 'none' }"
pos="absolute top-0 left-0" w-full aspect-video rounded="$bew-radius" bg-black
>
<source :src="previewVideoUrl" type="video/mp4">