Skip to content

Commit bf32090

Browse files
Navigation: adjust width based on mode
1 parent a1f6fc5 commit bf32090

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

client/packages/lowcoder/src/comps/comps/layout/navLayout.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -576,8 +576,7 @@ NavTmpLayout = withViewFn(NavTmpLayout, (comp) => {
576576
defaultOpenKeys={defaultOpenKeys}
577577
selectedKeys={[selectedKey]}
578578
$navItemStyle={{
579-
// width: `calc(100% - ${getHorizontalMargin(navItemStyle.margin.split(' '))})`,
580-
width: 'auto',
579+
width: navMode === 'horizontal' ? 'auto' : `calc(100% - ${getHorizontalMargin(navItemStyle.margin.split(' '))})`,
581580
...navItemStyle,
582581
}}
583582
$navItemHoverStyle={navItemHoverStyle}

0 commit comments

Comments
 (0)