Skip to content

Self-hosted personal gallery application with online photo management and albums, supporting Live/Motion Photos, EXIF parsing, geolocation recognition, and an explore map.

fix(photoItem): 修复非 LivePhoto 图片鼠标悬停时不显示叠层信息的问题

Timothy Yin6c8103947440
diff --git a/app/components/masonry/PhotoItem.client.vue b/app/components/masonry/PhotoItem.client.vue
index c1bf9769..1d0e2e18 100644
--- a/app/components/masonry/PhotoItem.client.vue
+++ b/app/components/masonry/PhotoItem.client.vue
@@ -89,10 +89,10 @@ const checkImageLoaded = (img: HTMLImageElement) => {
// LivePhoto video handling
const handleMouseEnter = async () => {
- if (!props.photo.isLivePhoto || !props.photo.livePhotoVideoUrl) return
-
isHovering.value = true
+ if (!props.photo.isLivePhoto || !props.photo.livePhotoVideoUrl) return
+
// Only start video processing if we have the blob ready
if (videoBlob.value && videoBlobUrl.value) {
playLivePhotoVideo()