diff --git a/frontend/src/App.css b/frontend/src/App.css index 4aa9948..c8bceb0 100644 --- a/frontend/src/App.css +++ b/frontend/src/App.css @@ -2122,6 +2122,13 @@ a.app-footer__repo:hover { color: var(--color-text-secondary); } +.creator-detail__topic-pills { + display: flex; + flex-wrap: wrap; + gap: 0.375rem; + align-items: center; +} + .creator-techniques { margin-top: 1.5rem; } diff --git a/frontend/src/pages/CreatorDetail.tsx b/frontend/src/pages/CreatorDetail.tsx index 4605302..98acd53 100644 --- a/frontend/src/pages/CreatorDetail.tsx +++ b/frontend/src/pages/CreatorDetail.tsx @@ -14,6 +14,7 @@ import { type TechniqueListItem, } from "../api/public-client"; import CreatorAvatar from "../components/CreatorAvatar"; +import { catSlug } from "../utils/catSlug"; export default function CreatorDetail() { const { slug } = useParams<{ slug: string }>(); @@ -109,20 +110,21 @@ export default function CreatorDetail() { {techniques.length > 0 && ( <> · - {Object.entries( - techniques.reduce>((acc, t) => { - const cat = t.topic_category || "Uncategorized"; - acc[cat] = (acc[cat] || 0) + 1; - return acc; - }, {}), - ) - .sort(([, a], [, b]) => b - a) - .map(([cat, count], i) => ( - - {i > 0 && ·} - {cat}: {count} - - ))} + + {Object.entries( + techniques.reduce>((acc, t) => { + const cat = t.topic_category || "Uncategorized"; + acc[cat] = (acc[cat] || 0) + 1; + return acc; + }, {}), + ) + .sort(([, a], [, b]) => b - a) + .map(([cat, count]) => ( + + {cat}: {count} + + ))} + )}