1
0

7 Revīzijas 12cfc9e769 ... f34e04467f

Autors SHA1 Ziņojums Datums
  gpt-engineer-app[bot] f34e04467f Afficher icône play sur YouTube 1 mēnesi atpakaļ
  gpt-engineer-app[bot] 6dda894993 Changes 1 mēnesi atpakaļ
  MrDuhaz 9c888e5cdc Fix heading formatting in README.md 1 mēnesi atpakaļ
  gpt-engineer-app[bot] f88a9113a6 Mettre à jour changelog 1 mēnesi atpakaļ
  gpt-engineer-app[bot] ebeee67391 Changes 1 mēnesi atpakaļ
  gpt-engineer-app[bot] e0ef7cb3c5 Show youtube thumbnails in cards 1 mēnesi atpakaļ
  gpt-engineer-app[bot] b8924f7f3b Changes 1 mēnesi atpakaļ
3 mainītis faili ar 23 papildinājumiem un 4 dzēšanām
  1. 1 1
      README.md
  2. 10 3
      src/components/NewsCard.tsx
  3. 12 0
      src/data/changelog.ts

+ 1 - 1
README.md

@@ -1,4 +1,4 @@
-## Project info !!!
+## Project info !!
 
 **URL**: (https://feeds.duhaz.fr)
 ## How can I edit this code?

+ 10 - 3
src/components/NewsCard.tsx

@@ -2,7 +2,7 @@ import { NewsItem } from '@/types/news';
 import { Card, CardContent, CardHeader } from '@/components/ui/card';
 import { Badge } from '@/components/ui/badge';
 import { Button } from '@/components/ui/button';
-import { Clock, Pin, ExternalLink, Eye, Trash2, Copy, Rss, Youtube, Gamepad2, Newspaper, Radio } from 'lucide-react';
+import { Clock, Pin, ExternalLink, Eye, Trash2, Copy, Rss, Youtube, Gamepad2, Newspaper, Radio, Play } from 'lucide-react';
 import { cn } from '@/lib/utils';
 import { useAuth } from '@/hooks/useAuth';
 import { decodeHtmlEntities } from '@/utils/htmlDecode';
@@ -128,14 +128,21 @@ const NewsCard = ({
       
       <CardContent className="space-y-4" onClick={handleCardClick}>
         <div className="space-y-3">
-          {news.imageUrl && news.category !== 'youtube' && (
-            <div className="w-full">
+          {news.imageUrl && (
+            <div className="relative w-full">
               <img
                 src={news.imageUrl}
                 alt={news.title}
                 className="w-full h-48 object-cover rounded-md"
                 loading="lazy"
               />
+              {news.category === 'youtube' && (
+                <div className="absolute inset-0 flex items-center justify-center">
+                  <div className="bg-red-600 rounded-full p-3 shadow-lg group-hover:scale-110 transition-transform">
+                    <Play className="h-8 w-8 text-white fill-white" />
+                  </div>
+                </div>
+              )}
             </div>
           )}
           

+ 12 - 0
src/data/changelog.ts

@@ -8,6 +8,18 @@ export interface ChangelogEntry {
 }
 
 export const changelogData: ChangelogEntry[] = [
+  {
+    version: "1.8.1",
+    date: "2025-12-20",
+    category: "bugfix",
+    title: "Affichage des miniatures YouTube",
+    description: "Correction de l'affichage des miniatures pour les vidéos YouTube dans les cartes d'articles.",
+    details: [
+      "Les miniatures YouTube s'affichent maintenant dans les cartes",
+      "Normalisation des types de flux RSS (rss-manual/rss-auto → rss)",
+      "Icônes de catégorie correctement affichées"
+    ]
+  },
   {
     version: "1.8.0",
     date: "2025-12-17",