Skip to content

Commit 2fbae4f

Browse files
committed
fix: prevent flex icon shrink
1 parent 432abb5 commit 2fbae4f

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

website-v3/src/components/PreviousNext.astro

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ if (automaticallyInferNextPrevious) {
4646
href={previous[1]}
4747
className="group inline-flex items-center gap-2 opacity-75 transition hover:opacity-100"
4848
>
49-
<span class="group-hover:text-docs-theme h-4 w-4 transition">
49+
<span class="group-hover:text-docs-theme h-4 w-4 flex-shrink-0 transition">
5050
<ChevronLeftIcon />
5151
</span>
5252
<span>{previous[0]}</span>
@@ -57,10 +57,10 @@ if (automaticallyInferNextPrevious) {
5757
{!!next && (
5858
<Link
5959
href={next[1]}
60-
className="group inline-flex items-center gap-2 opacity-75 transition hover:opacity-100"
60+
className="group inline-flex items-center gap-2 opacity-75 transition hover:opacity-100 text-right"
6161
>
6262
<span>{next[0]}</span>
63-
<span class="group-hover:text-docs-theme h-4 w-4 transition">
63+
<span class="group-hover:text-docs-theme h-4 w-4 flex-shrink-0 transition">
6464
<ChevronRightIcon />
6565
</span>
6666
</Link>

website-v3/src/components/mdx/callouts.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@ const Callout: React.FC<Props> = props => {
1616
return (
1717
<div
1818
className={cx(
19-
'mb-3 flex items-center gap-2 overflow-hidden rounded-xl px-5 py-4 text-sm',
19+
'mb-3 flex items-center gap-4 overflow-hidden rounded-xl px-5 py-4 text-sm',
2020
props.className,
2121
)}
2222
>
23-
<span className="h-6 w-6">{props.icon}</span>
23+
<span className="h-6 w-6 flex-shrink-0">{props.icon}</span>
2424
<span className="[&>p]:m-0">{props.children}</span>
2525
</div>
2626
);

0 commit comments

Comments
 (0)