Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
ant-design-pro
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
duanledexianxianxian
ant-design-pro
Commits
63bcfdbb
Commit
63bcfdbb
authored
Aug 28, 2017
by
afc163
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix menu and logo style
parent
291a36be
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
5 deletions
+9
-5
src/layouts/BasicLayout.js
src/layouts/BasicLayout.js
+2
-1
src/layouts/BasicLayout.less
src/layouts/BasicLayout.less
+7
-4
No files found.
src/layouts/BasicLayout.js
View file @
63bcfdbb
...
...
@@ -168,7 +168,7 @@ class BasicLayout extends React.PureComponent {
breakpoint
=
"
md
"
onCollapse
=
{
this
.
onCollapse
}
style
=
{{
minHeight
:
'
100vh
'
}}
width
=
{
2
72
}
width
=
{
2
56
}
>
<
div
className
=
{
styles
.
logo
}
>
<
Link
to
=
"
/
"
>
...
...
@@ -182,6 +182,7 @@ class BasicLayout extends React.PureComponent {
defaultOpenKeys
=
{
this
.
getDefaultCollapsedSubMenus
()}
selectedKeys
=
{
this
.
getCurrentMenuSelectedKeys
()}
style
=
{{
margin
:
'
24px 0
'
,
width
:
'
100%
'
}}
inlineIndent
=
{
32
}
>
{
this
.
getNavMenuItems
(
menus
)}
<
/Menu
>
...
...
src/layouts/BasicLayout.less
View file @
63bcfdbb
...
...
@@ -10,7 +10,8 @@
height: 64px;
position: relative;
line-height: 64px;
padding: 0 24px;
padding-left: 32px;
transition: all .3s;
background: @primary-color;
overflow: hidden;
img {
...
...
@@ -29,8 +30,11 @@
}
}
:global(.ant-layout-sider-collapsed) .logo > a {
:global(.ant-layout-sider-collapsed) .logo {
padding-left: 24px;
> a {
width: 32px;
}
}
.trigger {
...
...
@@ -40,7 +44,6 @@
transition: all .3s;
color: #fff;
padding: 0 28px;
vertical-align: middle;
&:hover {
background: @primary-7;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment