Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitbf32090

Browse files
Navigation: adjust width based on mode
1 parenta1f6fc5 commitbf32090

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)

[8]ページ先頭

©2009-2025 Movatter.jp