Skip to content

Commit e19df89

Browse files
committed
fix: tag spacing
1 parent 8773b3b commit e19df89

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

components/Tag.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { kebabCase } from '@/lib/utils'
44
const Tag = ({ text }) => {
55
return (
66
<Link href={`/tags/${kebabCase(text)}`}>
7-
<a className="text-sm font-medium text-blue-500 uppercase hover:text-blue-600 dark:hover:text-blue-400">
7+
<a className="mr-3 text-sm font-medium text-blue-500 uppercase hover:text-blue-600 dark:hover:text-blue-400">
88
{text.split(' ').join('-')}
99
</a>
1010
</Link>

layouts/ListLayout.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ export default function ListLayout({ posts, title }) {
6363
{title}
6464
</Link>
6565
</h3>
66-
<div className="space-x-3">
66+
<div className="flex flex-wrap">
6767
{tags.map((tag) => (
6868
<Tag key={tag} text={tag} />
6969
))}

pages/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ export default function Home({ posts }) {
5656
{title}
5757
</Link>
5858
</h2>
59-
<div className="space-x-3">
59+
<div className="flex flex-wrap">
6060
{tags.map((tag) => (
6161
<Tag key={tag} text={tag} />
6262
))}

pages/tags.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,11 @@ export default function Tags({ tags }) {
3030
{Object.keys(tags).length === 0 && 'No tags found.'}
3131
{sortedTags.map((t) => {
3232
return (
33-
<div key={t} className="m-2">
33+
<div key={t} className="mt-2 mb-2 mr-5">
3434
<Tag text={t} />
3535
<Link
3636
href={`/tags/${kebabCase(t)}`}
37-
className="mx-1 text-sm font-semibold text-gray-600 uppercase dark:text-gray-300"
37+
className="-ml-2 text-sm font-semibold text-gray-600 uppercase dark:text-gray-300"
3838
>
3939
{` (${tags[t]})`}
4040
</Link>

0 commit comments

Comments
 (0)