Skip to content

Commit 8b754f2

Browse files
committed
feat: tags return to the newline
1 parent f7ef141 commit 8b754f2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

apps/blog/src/components/TagFilter.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,15 +100,15 @@ export function TagFilter({ tags, initialTags = [], locale = 'en' }: TagFilterPr
100100
/>
101101
</div>
102102

103-
<div className="flex items-center gap-3 overflow-x-auto scrollbar-hide">
103+
<div className="flex items-center gap-3 flex-wrap">
104104
{tags.map((tag) => {
105105
const active = selectedTags.includes(tag.name)
106106
return (
107107
<button
108108
key={tag.name}
109109
type="button"
110110
onClick={() => toggleTag(tag.name)}
111-
className={`flex items-center gap-1.5 rounded-md border px-4 py-1.5 text-sm shrink-0 transition-colors cursor-pointer border-dashed ${
111+
className={`flex items-center gap-1.5 rounded-md border px-4 py-1.5 text-sm transition-colors cursor-pointer border-dashed ${
112112
active
113113
? 'border-primary/50 bg-primary/5 text-primary font-medium'
114114
: 'border-border text-muted-foreground hover:border-foreground/30 hover:text-foreground'

0 commit comments

Comments
 (0)