Skip to content

Commit 8aab1f7

Browse files
committed
remove transitions
1 parent 6582c1d commit 8aab1f7

File tree

1 file changed

+3
-11
lines changed

1 file changed

+3
-11
lines changed

src/components/paginationNav.tsx

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export function PaginationNav({
1010
title: 'Previous' | 'Next';
1111
}) {
1212
return (
13-
<a href={`/${node.path}`} className="no-underline group">
13+
<a href={`/${node.path}`} className="no-underline">
1414
<div
1515
className={`py-3 px-4 border-2 rounded-md transition-colors hover:[border-color:var(--accent)] ${
1616
title === 'Previous' ? 'text-left' : 'text-right'
@@ -22,19 +22,11 @@ export function PaginationNav({
2222
title === 'Previous' ? 'justify-start' : 'justify-end'
2323
}`}
2424
>
25-
{title === 'Previous' && (
26-
<div className="transition-transform group-hover:-translate-x-1">
27-
<DoubleArrowLeftIcon />
28-
</div>
29-
)}
25+
{title === 'Previous' && <DoubleArrowLeftIcon />}
3026

3127
{node.title}
3228

33-
{title === 'Next' && (
34-
<div className="transition-transform group-hover:translate-x-1">
35-
<DoubleArrowRightIcon />
36-
</div>
37-
)}
29+
{title === 'Next' && <DoubleArrowRightIcon />}
3830
</div>
3931
</div>
4032
</a>

0 commit comments

Comments
 (0)