소스 검색

Restore category icon position

gpt-engineer-app[bot] 2 달 전
부모
커밋
d195f50cf9
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      src/components/NewsCard.tsx

+ 2 - 1
src/components/NewsCard.tsx

@@ -87,9 +87,10 @@ const NewsCard = ({
             </div>
             
             <h3 className={cn(
-              "font-semibold leading-tight group-hover:text-primary transition-colors",
+              "flex items-center gap-2 font-semibold leading-tight group-hover:text-primary transition-colors",
               news.isRead && "text-muted-foreground"
             )}>
+              {getCategoryIcon(news.category)}
               {decodeHtmlEntities(news.title)}
             </h3>
           </div>