Skip to content

Commit 482253b

Browse files
itzraghavvTRohit20akshatnema
authored
fix: misaligned-nav-box (#4094)
Co-authored-by: raghav-97 <[email protected]> Co-authored-by: Rohit <[email protected]> Co-authored-by: Akshat Nema <[email protected]>
1 parent 6f74a6a commit 482253b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

components/buttons/DocsButton.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@ export interface IDocsButtonProps {
1818
export default function DocsButton({ post, className = '' }: IDocsButtonProps) {
1919
return (
2020
<div className={`mb-4 flex h-full flex-row gap-4 ${className}`}>
21-
<div className='h-auto w-1/2'>
21+
<div className='w-1/2'>
2222
{post?.prevPage && (
2323
<Link href={post.prevPage.href}>
2424
<div
25-
className={`cursor-pointer rounded border border-gray-200 p-4 text-center shadow-md transition-all
25+
className={`h-full cursor-pointer rounded border border-gray-200 p-4 text-center shadow-md transition-all
2626
duration-300 ease-in-out hover:border-gray-300 hover:shadow-lg lg:text-left`}
2727
>
2828
<div className='text-secondary-500' data-testid='DocsButton-Prevdiv'>
@@ -49,9 +49,9 @@ export default function DocsButton({ post, className = '' }: IDocsButtonProps) {
4949
</Link>
5050
)}
5151
</div>
52-
<div className='h-auto w-1/2'>
52+
<div className='w-1/2'>
5353
{post?.nextPage && (
54-
<Link href={post.nextPage.href} className='h-auto'>
54+
<Link href={post.nextPage.href}>
5555
<div
5656
className={`h-full cursor-pointer rounded border border-gray-200 p-4 text-center shadow-md
5757
transition-all duration-300 ease-in-out hover:border-gray-300 hover:shadow-lg lg:text-right`}

0 commit comments

Comments
 (0)