Skip to content

Commit 300ce2f

Browse files
committed
design: adjust menu padding
1 parent d392a7c commit 300ce2f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/components/Nav/Menu/LvlContent.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ const LvlContent = ({ lvl, items, activeSection }: LvlContentProps) => {
5454
<NavigationMenu.Sub orientation="vertical" asChild>
5555
<Grid w="full" h="full" gridTemplateColumns={getColumns(lvl)}>
5656
<NavigationMenu.List asChild>
57-
<UnorderedList listStyleType="none" p={pad} m="0">
57+
<UnorderedList listStyleType="none" p={pad / 2} m="0">
5858
{items.map((item) => {
5959
const { label, description, icon, ...action } = item
6060
const subItems = action.items || []
@@ -75,7 +75,7 @@ const LvlContent = ({ lvl, items, activeSection }: LvlContentProps) => {
7575
w: "full",
7676
me: -pad,
7777
sx: {
78-
"span:first-of-type": { m: 0, me: pad }, // Spacing for icon
78+
"span:first-of-type": { m: 0, me: 4 }, // Spacing for icon
7979
},
8080
py: pad,
8181
bg: isActivePage
@@ -88,7 +88,7 @@ const LvlContent = ({ lvl, items, activeSection }: LvlContentProps) => {
8888
return (
8989
<NavigationMenu.Item key={label} asChild>
9090
<ListItem
91-
mb="1"
91+
mb={pad / 2}
9292
_last={{ mb: 0 }}
9393
sx={{
9494
'&:has(button[data-state="open"])': {

0 commit comments

Comments
 (0)