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
P
pro-blocks
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
pro-blocks
Commits
af0b06ec
Commit
af0b06ec
authored
Sep 30, 2017
by
ddcat1115
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
change usage of PageHeader in Workplace
parent
4186ba64
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
38 additions
and
26 deletions
+38
-26
src/routes/Dashboard/Workplace.js
src/routes/Dashboard/Workplace.js
+9
-9
src/routes/Dashboard/Workplace.less
src/routes/Dashboard/Workplace.less
+29
-17
No files found.
src/routes/Dashboard/Workplace.js
View file @
af0b06ec
...
...
@@ -103,20 +103,20 @@ export default class Workplace extends PureComponent {
chart
:
{
radarData
},
}
=
this
.
props
;
const
pageHeader
Title
=
(
<
div
className
=
{
styles
.
pageHeader
Title
}
>
<
div
className
=
{
styles
.
titleA
vatar
}
>
const
pageHeader
Content
=
(
<
div
className
=
{
styles
.
pageHeader
Content
}
>
<
div
className
=
{
styles
.
a
vatar
}
>
<
Avatar
size
=
"
large
"
src
=
"
https://gw.alipayobjects.com/zos/rmsportal/XertDCubOxUvZbCdgWTW.png
"
/>
<
/div
>
<
div
className
=
{
styles
.
titleC
ontent
}
>
<
p
>
早安
,
曲丽丽
,
祝你开心每一天
<
/p
>
<
div
className
=
{
styles
.
c
ontent
}
>
<
p
className
=
{
styles
.
contentTitle
}
>
早安
,
曲丽丽
,
祝你开心每一天
<
/p
>
<
p
>
交互专家
|
蚂蚁金服
-
某某某事业群
-
某某平台部
-
某某技术部
-
UED
<
/p
>
<
/div
>
<
/div
>
);
const
pageHeader
Action
=
(
<
div
className
=
{
styles
.
pageHeader
Action
}
>
const
pageHeader
Extra
=
(
<
div
className
=
{
styles
.
pageHeader
Extra
}
>
<
div
>
<
p
><
Icon
type
=
"
appstore-o
"
/>
项目数
<
/p
>
<
p
>
56
<
/p
>
...
...
@@ -136,8 +136,8 @@ export default class Workplace extends PureComponent {
return
(
<
PageHeaderLayout
action
=
{
pageHeaderAction
}
title
=
{
pageHeaderTitle
}
content
=
{
pageHeaderContent
}
extraContent
=
{
pageHeaderExtra
}
>
<
Row
gutter
=
{
24
}
>
<
Col
lg
=
{
16
}
md
=
{
24
}
sm
=
{
24
}
xs
=
{
24
}
>
...
...
src/routes/Dashboard/Workplace.less
View file @
af0b06ec
...
...
@@ -10,9 +10,9 @@
}
}
.pageHeader
Title
{
.pageHeader
Content
{
display: flex;
.
titleA
vatar {
.
a
vatar {
flex: 0 1 80px;
& > span {
border-radius: 80px;
...
...
@@ -21,28 +21,24 @@
height: 80px;
}
}
.
titleC
ontent {
.
c
ontent {
position: relative;
top: 8px;
margin-left: 32px;
flex: 1 1 auto;
p {
font-weight: normal;
}
& > p:last-child {
color: @text-color-secondary;
font-size: @font-size-base;
line-height: 22px;
margin-top: 12px;
color: @text-color-secondary;
.contentTitle {
font-size: 20px;
font-weight: 500;
color: @heading-color;
margin-bottom: 12px;
}
}
}
.pageHeaderAction {
float: right;
.pageHeaderExtra {
.clearfix();
& > div {
text-align: right;
padding: 0 24px;
position: relative;
float: left;
...
...
@@ -144,7 +140,7 @@
}
@media screen and (max-width: @screen-xl) and (min-width: @screen-lg) {
.pageHeader
Action
{
.pageHeader
Extra
{
margin-left: -44px;
& > div {
padding: 0 16px;
...
...
@@ -153,8 +149,7 @@
}
@media screen and (max-width: @screen-lg) {
.pageHeaderAction {
margin-left: -64px;
.pageHeaderExtra {
& > div {
padding: 0 16px;
text-align: left;
...
...
@@ -166,6 +161,9 @@
}
@media screen and (max-width: @screen-md) {
.pageHeaderExtra {
margin-left: -16px;
}
.projectList {
.projectGrid {
width: 50%;
...
...
@@ -173,6 +171,20 @@
}
}
@media screen and (max-width: @screen-sm) {
.pageHeaderContent {
display: block;
.content {
margin-left: 0;
}
}
.pageHeaderExtra {
& > div {
float: none;
}
}
}
@media screen and (max-width: @screen-xs) {
.projectList {
.projectGrid {
...
...
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