Skip to content

fix: misaligned-nav-box #4094

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
May 24, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions components/buttons/DocsButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ export interface IDocsButtonProps {
export default function DocsButton({ post, className = '' }: IDocsButtonProps) {
return (
<div className={`mb-4 flex h-full flex-row gap-4 ${className}`}>
<div className='h-auto w-1/2'>
<div className='w-1/2'>
{post?.prevPage && (
<Link href={post.prevPage.href}>
<div
className={`cursor-pointer rounded border border-gray-200 p-4 text-center shadow-md transition-all
className={`h-full cursor-pointer rounded border border-gray-200 p-4 text-center shadow-md transition-all
duration-300 ease-in-out hover:border-gray-300 hover:shadow-lg lg:text-left`}
>
<div className='text-secondary-500' data-testid='DocsButton-Prevdiv'>
Expand All @@ -49,9 +49,9 @@ export default function DocsButton({ post, className = '' }: IDocsButtonProps) {
</Link>
)}
</div>
<div className='h-auto w-1/2'>
<div className='w-1/2'>
{post?.nextPage && (
<Link href={post.nextPage.href} className='h-auto'>
<Link href={post.nextPage.href}>
<div
className={`h-full cursor-pointer rounded border border-gray-200 p-4 text-center shadow-md
transition-all duration-300 ease-in-out hover:border-gray-300 hover:shadow-lg lg:text-right`}
Expand Down
Loading