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
3708b6f9
Commit
3708b6f9
authored
Mar 14, 2019
by
yaphet
Committed by
陈帅
Mar 14, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:小屏幕显示不完全 (#3726)
* 修复小屏幕显示不完全问题 屏幕尺寸小于1200时,顶部菜单右侧内容被遮挡 * Update index.js * 格式化代码
parent
5684b5d5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
src/components/TopNavHeader/index.js
src/components/TopNavHeader/index.js
+5
-1
No files found.
src/components/TopNavHeader/index.js
View file @
3708b6f9
...
@@ -13,7 +13,11 @@ export default class TopNavHeader extends PureComponent {
...
@@ -13,7 +13,11 @@ export default class TopNavHeader extends PureComponent {
static
getDerivedStateFromProps
(
props
)
{
static
getDerivedStateFromProps
(
props
)
{
return
{
return
{
maxWidth
:
(
props
.
contentWidth
===
'
Fixed
'
?
1200
:
window
.
innerWidth
)
-
280
-
165
-
40
,
maxWidth
:
(
props
.
contentWidth
===
'
Fixed
'
&&
window
.
innerWidth
>
1200
?
1200
:
window
.
innerWidth
)
-
280
-
120
-
40
,
};
};
}
}
...
...
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