Commit 43eedc03 authored by Ivocin's avatar Ivocin Committed by 偏右

fix (#2182): top menu layout without submenu display issue

add a class named 'top-nave-menu' when BaseMenu mode is horizontal to fixed height promblem
parent 0d47d504
...@@ -179,6 +179,7 @@ export default class BaseMenu extends PureComponent { ...@@ -179,6 +179,7 @@ export default class BaseMenu extends PureComponent {
onOpenChange={handleOpenChange} onOpenChange={handleOpenChange}
selectedKeys={selectedKeys} selectedKeys={selectedKeys}
style={style} style={style}
className={mode === 'horizontal' ? 'top-nav-menu' : ''}
{...props} {...props}
> >
{this.getNavMenuItems(menuData)} {this.getNavMenuItems(menuData)}
......
...@@ -62,6 +62,10 @@ ...@@ -62,6 +62,10 @@
} }
:global { :global {
.top-nav-menu li.ant-menu-item {
height: 64px;
line-height: 64px;
}
.drawer .drawer-content { .drawer .drawer-content {
background: #001529; background: #001529;
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment