Skip to content

Commit baa8941

Browse files
authored
fix: add padding to ButtonLink badge div (saicaca#251)
When the number of posts in a category reaches 4 or even 3 digits the component does not look correct.
1 parent 589c593 commit baa8941

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/control/ButtonLink.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ const { badge, url, label } = Astro.props
3131
<slot></slot>
3232
</div>
3333
{ badge !== undefined && badge !== null && badge !== '' &&
34-
<div class="transition h-7 ml-4 min-w-[2rem] rounded-lg text-sm font-bold
34+
<div class="transition px-2 h-7 ml-4 min-w-[2rem] rounded-lg text-sm font-bold
3535
text-[var(--btn-content)] dark:text-[var(--deep-text)]
3636
bg-[oklch(0.95_0.025_var(--hue))] dark:bg-[var(--primary)]
3737
flex items-center justify-center">

0 commit comments

Comments
 (0)