瀏覽代碼

Fix YouTube video display

gpt-engineer-app[bot] 2 月之前
父節點
當前提交
c37e1ae9d6
共有 1 個文件被更改,包括 2 次插入2 次删除
  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}