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
13a1cacf
Commit
13a1cacf
authored
Oct 31, 2017
by
afc163
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve reponsive
parent
ebb3a09e
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
1 deletion
+13
-1
src/layouts/PageHeaderLayout.js
src/layouts/PageHeaderLayout.js
+2
-1
src/layouts/PageHeaderLayout.less
src/layouts/PageHeaderLayout.less
+11
-0
No files found.
src/layouts/PageHeaderLayout.js
View file @
13a1cacf
import
React
from
'
react
'
;
import
{
Link
}
from
'
dva/router
'
;
import
PageHeader
from
'
../components/PageHeader
'
;
import
styles
from
'
./PageHeaderLayout.less
'
;
export
default
({
children
,
wrapperClassName
,
top
,
...
restProps
})
=>
(
<
div
style
=
{{
margin
:
'
-24px -24px 0
'
}}
className
=
{
wrapperClassName
}
>
{
top
}
<
PageHeader
{...
restProps
}
linkElement
=
{
Link
}
/
>
{
children
?
<
div
style
=
{{
margin
:
'
24px 24px 0
'
}
}
>
{
children
}
<
/div> : null
}
{
children
?
<
div
className
=
{
styles
.
content
}
>
{
children
}
<
/div> : null
}
<
/div
>
);
src/layouts/PageHeaderLayout.less
0 β 100644
View file @
13a1cacf
@import "~antd/lib/style/themes/default.less";
.content {
margin: 24px 24px 0;
}
@media screen and (max-width: @screen-sm) {
.content {
margin: 24px 0 0;
}
}
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