feat: play live photos on hover (#19962)

pull/20065/head
bo0tzz 2025-07-21 23:59:42 +02:00 committed by GitHub
parent 737e768212
commit 826eaedae6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 1 deletions

View File

@ -343,11 +343,12 @@
<div class="absolute top-0 h-full w-full">
<VideoThumbnail
url={getAssetPlaybackUrl({ id: asset.livePhotoVideoId, cacheKey: asset.thumbhash })}
enablePlayback={mouseOver && $playVideoThumbnailOnHover}
pauseIcon={mdiMotionPauseOutline}
playIcon={mdiMotionPlayOutline}
showTime={false}
curve={selected}
playbackOnIconHover
playbackOnIconHover={!$playVideoThumbnailOnHover}
/>
</div>
{/if}