diff --git a/src/components/Posts/PostDetailModal.jsx b/src/components/Posts/PostDetailModal.jsx index 818a5a0..e76eed1 100644 --- a/src/components/Posts/PostDetailModal.jsx +++ b/src/components/Posts/PostDetailModal.jsx @@ -1001,13 +1001,19 @@ export default function PostDetailModal({ post, onClose, onPostUpdated, onPostDe )} {/* Tags */} - {post?.tags?.length > 0 && ( + {(post?.event_tags?.length > 0 || post?.tags?.length > 0) && (
- {post.tags.slice(0, 6).map((tag, i) => ( - - #{tag} - - ))} + {(post.event_tags || post.tags).slice(0, 6).map((tag, i) => { + const impact = post?.topic_impacts?.[tag] ?? 0; + const colorClass = impact > 0 ? "bg-green-500/20 text-green-400" : + impact < 0 ? "bg-red-500/20 text-red-400" : + "bg-themed-accent text-accent"; + return ( + + #{tag} + + ); + })}
)}