fix: resolve clipping issue on hover effect

This commit is contained in:
Hakadao
2023-10-17 14:31:10 +08:00
parent 580060b87c
commit d276f3f0fe

View File

@@ -66,7 +66,7 @@ function toggleWatchLater() {
}
}
function handleMouseMove() {
function handleMouseEnter() {
contentVisibility.value = 'visible'
}
@@ -141,7 +141,7 @@ function handelMouseLeave() {
w="full" pos="absolute top-0 left-0"
rounded="$bew-radius"
:style="{ contentVisibility }"
@mousemove="handleMouseMove"
@mouseenter="handleMouseEnter"
@mouseleave="handelMouseLeave"
>
<div :style="{ display: horizontal ? 'flex' : 'block', gap: horizontal ? '1.5rem' : '0' }">