fix: video card button cannot click

This commit is contained in:
shinya
2025-08-21 23:37:37 +08:00
parent 72e8ade882
commit 5798a6c63b
2 changed files with 14 additions and 3 deletions

View File

@@ -583,6 +583,7 @@ const VideoCard = forwardRef<VideoCardHandle, VideoCardProps>(function VideoCard
{config.showCheckCircle && (
<Trash2
onClick={handleDeleteRecord}
data-role="button"
size={20}
className='text-white transition-all duration-300 ease-out hover:stroke-red-500 hover:scale-[1.1]'
style={{
@@ -599,6 +600,7 @@ const VideoCard = forwardRef<VideoCardHandle, VideoCardProps>(function VideoCard
{config.showHeart && (
<Heart
onClick={handleToggleFavorite}
data-role="button"
size={20}
className={`transition-all duration-300 ease-out ${favorited
? 'fill-red-600 stroke-red-600'