From 1e3987f54d036ff9425d5427628692f6f721c273 Mon Sep 17 00:00:00 2001 From: ManikantaMandala Date: Wed, 9 Oct 2024 17:33:49 +0530 Subject: [PATCH 1/2] fix: Inconsistent padding in the accordion in responsive conditions it fixes #3250 --- components/navigation/MenuBlocks.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/navigation/MenuBlocks.tsx b/components/navigation/MenuBlocks.tsx index 1f239ba8b17..8aff30b6e63 100644 --- a/components/navigation/MenuBlocks.tsx +++ b/components/navigation/MenuBlocks.tsx @@ -28,7 +28,7 @@ export default function MenuBlocks({ items = [] }: MenuBlocksProps) { const router = useRouter(); return ( - <> +
{items.map((item, index) => { const isExternalHref = item.href && item.href.startsWith('http'); @@ -66,6 +66,6 @@ export default function MenuBlocks({ items = [] }: MenuBlocksProps) { ); })} - +
); } From 660a310ef21cf5a3dedb1d0456c1692145079cb9 Mon Sep 17 00:00:00 2001 From: ManikantaMandala Date: Wed, 9 Oct 2024 20:03:56 +0530 Subject: [PATCH 2/2] fix: add margin to every menu block item instead of adding padding to menu block added margin-top to every menu block item --- components/navigation/MenuBlocks.tsx | 6 +++--- next-env.d.ts | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/components/navigation/MenuBlocks.tsx b/components/navigation/MenuBlocks.tsx index 8aff30b6e63..5c2ba11fbda 100644 --- a/components/navigation/MenuBlocks.tsx +++ b/components/navigation/MenuBlocks.tsx @@ -28,7 +28,7 @@ export default function MenuBlocks({ items = [] }: MenuBlocksProps) { const router = useRouter(); return ( -
+ <> {items.map((item, index) => { const isExternalHref = item.href && item.href.startsWith('http'); @@ -41,7 +41,7 @@ export default function MenuBlocks({ items = [] }: MenuBlocksProps) { > @@ -66,6 +66,6 @@ export default function MenuBlocks({ items = [] }: MenuBlocksProps) { ); })} -
+ ); } diff --git a/next-env.d.ts b/next-env.d.ts index 4f11a03dc6c..a4a7b3f5cfa 100644 --- a/next-env.d.ts +++ b/next-env.d.ts @@ -2,4 +2,4 @@ /// // NOTE: This file should not be edited -// see https://nextjs.org/docs/basic-features/typescript for more information. +// see https://nextjs.org/docs/pages/building-your-application/configuring/typescript for more information.