Commit 63bcfdbb authored by afc163's avatar afc163

Fix menu and logo style

parent 291a36be
...@@ -168,7 +168,7 @@ class BasicLayout extends React.PureComponent { ...@@ -168,7 +168,7 @@ class BasicLayout extends React.PureComponent {
breakpoint="md" breakpoint="md"
onCollapse={this.onCollapse} onCollapse={this.onCollapse}
style={{ minHeight: '100vh' }} style={{ minHeight: '100vh' }}
width={272} width={256}
> >
<div className={styles.logo}> <div className={styles.logo}>
<Link to="/"> <Link to="/">
...@@ -182,6 +182,7 @@ class BasicLayout extends React.PureComponent { ...@@ -182,6 +182,7 @@ class BasicLayout extends React.PureComponent {
defaultOpenKeys={this.getDefaultCollapsedSubMenus()} defaultOpenKeys={this.getDefaultCollapsedSubMenus()}
selectedKeys={this.getCurrentMenuSelectedKeys()} selectedKeys={this.getCurrentMenuSelectedKeys()}
style={{ margin: '24px 0', width: '100%' }} style={{ margin: '24px 0', width: '100%' }}
inlineIndent={32}
> >
{this.getNavMenuItems(menus)} {this.getNavMenuItems(menus)}
</Menu> </Menu>
......
...@@ -10,7 +10,8 @@ ...@@ -10,7 +10,8 @@
height: 64px; height: 64px;
position: relative; position: relative;
line-height: 64px; line-height: 64px;
padding: 0 24px; padding-left: 32px;
transition: all .3s;
background: @primary-color; background: @primary-color;
overflow: hidden; overflow: hidden;
img { img {
...@@ -29,8 +30,11 @@ ...@@ -29,8 +30,11 @@
} }
} }
:global(.ant-layout-sider-collapsed) .logo > a { :global(.ant-layout-sider-collapsed) .logo {
width: 32px; padding-left: 24px;
> a {
width: 32px;
}
} }
.trigger { .trigger {
...@@ -40,7 +44,6 @@ ...@@ -40,7 +44,6 @@
transition: all .3s; transition: all .3s;
color: #fff; color: #fff;
padding: 0 28px; padding: 0 28px;
vertical-align: middle;
&:hover { &:hover {
background: @primary-7; background: @primary-7;
} }
......
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