Prechádzať zdrojové kódy

Fix YouTube video display

gpt-engineer-app[bot] 2 mesiacov pred
rodič
commit
c37e1ae9d6
1 zmenil súbory, kde vykonal 2 pridanie a 2 odobranie
  1. 2 2
      src/components/ArticleModal.tsx

+ 2 - 2
src/components/ArticleModal.tsx

@@ -88,8 +88,8 @@ const ArticleModal = ({ isOpen, onClose, article }: ArticleModalProps) => {
             </div>
           )}
 
-          {/* Article Image */}
-          {article.imageUrl && !isYouTubeVideo && (
+          {/* Article Image - Only for non-YouTube articles */}
+          {article.imageUrl && article.category !== 'youtube' && (
             <div className="w-full">
               <img 
                 src={article.imageUrl}