diff --git a/components/QuickViewKind20NoteCard.tsx b/components/QuickViewKind20NoteCard.tsx index 7759f8b..84b2480 100644 --- a/components/QuickViewKind20NoteCard.tsx +++ b/components/QuickViewKind20NoteCard.tsx @@ -10,7 +10,7 @@ import { import Link from 'next/link'; import Image from 'next/image'; import { Button } from '@/components/ui/button'; -import { Eye, Play } from 'lucide-react'; +import { Eye, Play, PlayCircle } from 'lucide-react'; import { extractDimensions, getProxiedImageUrl, hasNsfwContent, getThumbnailUrl } from '@/utils/utils'; // Function to extract video URL from imeta tags @@ -19,7 +19,7 @@ const getVideoUrl = (tags: string[][]): string | null => { if (tag[0] === 'imeta') { for (let i = 1; i < tag.length; i++) { if (tag[i].startsWith('url ')) { - return tag[i].substring(4); + return tag[i].substring(4).trim(); } } } @@ -105,31 +105,24 @@ const QuickViewKind20NoteCard: React.FC = ({ pubke ) : ( <> {isVideo ? ( - // For videos, show thumbnail if available, otherwise show placeholder - thumbnailUrl ? ( - // Show thumbnail with play button overlay - {displayText} { - if (tryWithoutProxy) { - setImageError(true); - } else { - setTryWithoutProxy(true); - } - }} - style={{ objectPosition: 'center' }} - /> - ) : ( - // Show placeholder with play button -
-
- -
-
- ) + // For videos, use the video element to show the first frame +