diff --git a/src/routes/Dashboard/Workplace.js b/src/routes/Dashboard/Workplace.js
index 3e964250ec61c90afdacd30193388e28f79f3f92..c19720a3546ee9e93769b42e9887f6a49e054df9 100644
--- a/src/routes/Dashboard/Workplace.js
+++ b/src/routes/Dashboard/Workplace.js
@@ -103,20 +103,20 @@ export default class Workplace extends PureComponent {
chart: { radarData },
} = this.props;
- const pageHeaderTitle = (
-
-
+ const pageHeaderContent = (
+
+
-
-
早安, 曲丽丽, 祝你开心每一天
+
+
早安, 曲丽丽, 祝你开心每一天
交互专家 | 蚂蚁金服-某某某事业群-某某平台部-某某技术部-UED
);
- const pageHeaderAction = (
-
+ const pageHeaderExtra = (
+
项目数
56
@@ -136,8 +136,8 @@ export default class Workplace extends PureComponent {
return (
diff --git a/src/routes/Dashboard/Workplace.less b/src/routes/Dashboard/Workplace.less
index 0e4f0089e2bd01acbdffbf48106dbf869c7798d1..cf272a02824a02957d6a81b698fc95f770b29a80 100644
--- a/src/routes/Dashboard/Workplace.less
+++ b/src/routes/Dashboard/Workplace.less
@@ -10,9 +10,9 @@
}
}
-.pageHeaderTitle {
+.pageHeaderContent {
display: flex;
- .titleAvatar {
+ .avatar {
flex: 0 1 80px;
& > span {
border-radius: 80px;
@@ -21,28 +21,24 @@
height: 80px;
}
}
- .titleContent {
+ .content {
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) {
- .pageHeaderAction {
+ .pageHeaderExtra {
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 {