Browse Source

remove useless margin

nikogu 8 years ago
parent
commit
62792cc15f
2 changed files with 7 additions and 1 deletions
  1. 1 1
      src/routes/Dashboard/Workplace.js
  2. 6 0
      src/routes/Dashboard/Workplace.less

+ 1 - 1
src/routes/Dashboard/Workplace.js

@@ -171,9 +171,9 @@ export default class Workplace extends PureComponent {
               }
               }
             </Card>
             </Card>
             <Card
             <Card
-              style={{ marginBottom: 24 }}
               bodyStyle={{ padding: 0 }}
               bodyStyle={{ padding: 0 }}
               bordered={false}
               bordered={false}
+              className={styles.activeCard}
               title="动态"
               title="动态"
               loading={activitiesLoading}
               loading={activitiesLoading}
             >
             >

+ 6 - 0
src/routes/Dashboard/Workplace.less

@@ -141,6 +141,9 @@
 }
 }
 
 
 @media screen and (max-width: @screen-xl)  and (min-width: @screen-lg) {
 @media screen and (max-width: @screen-xl)  and (min-width: @screen-lg) {
+  .activeCard {
+    margin-bottom: 24px;
+  }
   .members {
   .members {
     margin-bottom: 0;
     margin-bottom: 0;
   }
   }
@@ -153,6 +156,9 @@
 }
 }
 
 
 @media screen and (max-width: @screen-lg) {
 @media screen and (max-width: @screen-lg) {
+  .activeCard {
+    margin-bottom: 24px;
+  }
   .members {
   .members {
     margin-bottom: 0;
     margin-bottom: 0;
   }
   }