Skip to content

Commit 6a695d9

Browse files
Fixing multi-line menu items
1 parent 7830e4e commit 6a695d9

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

src/components/desktop-nav.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ export const DesktopNav = ({ navItems, ...props }) => {
2525
fontSize={'sm'}
2626
fontWeight={'bold'}
2727
// eslint-disable-next-line react-hooks/rules-of-hooks
28+
whiteSpace={'nowrap'}
29+
flexShrink={0}
2830
color={useColorModeValue('gray.600', 'gray.200')}
2931
_hover={{
3032
textDecoration: 'none',

src/components/mobile-nav.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ const MobileNavItem = ({ href, children, label }) => {
3535
>
3636
<Text
3737
fontWeight={600}
38+
whiteSpace={'nowrap'}
3839
color={useColorModeValue('gray.600', 'gray.200')}
3940
>
4041
{label}
@@ -56,6 +57,7 @@ const MobileNavItem = ({ href, children, label }) => {
5657
pl={4}
5758
borderLeft={1}
5859
borderStyle={'solid'}
60+
whiteSpace={'nowrap'}
5961
borderColor={useColorModeValue('gray.200', 'gray.700')}
6062
align={'start'}
6163
>

0 commit comments

Comments
 (0)