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
3700c13c
Commit
3700c13c
authored
Sep 05, 2018
by
afc163
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed siderbar should be scrollable, close #2191
parent
57cb464f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
src/components/SiderMenu/index.less
src/components/SiderMenu/index.less
+8
-2
No files found.
src/components/SiderMenu/index.less
View file @
3700c13c
@import '~antd/lib/style/themes/default.less';
@import '~antd/lib/style/themes/default.less';
@nav-header-height: 64px;
.logo {
.logo {
height:
64px
;
height:
@nav-header-height
;
position: relative;
position: relative;
line-height:
64px
;
line-height:
@nav-header-height
;
padding-left: (@menu-collapsed-width - 32px) / 2;
padding-left: (@menu-collapsed-width - 32px) / 2;
transition: all 0.3s;
transition: all 0.3s;
background: #002140;
background: #002140;
...
@@ -33,6 +35,10 @@
...
@@ -33,6 +35,10 @@
position: fixed;
position: fixed;
top: 0;
top: 0;
left: 0;
left: 0;
:global(.ant-menu-root) {
overflow-y: auto;
height: ~'calc(100vh - @{nav-header-height})';
}
}
}
&.light {
&.light {
box-shadow: 2px 0 8px 0 rgba(29, 35, 41, 0.05);
box-shadow: 2px 0 8px 0 rgba(29, 35, 41, 0.05);
...
...
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