소스 검색

remove useless margin

nikogu 8 년 전
부모
커밋
62792cc15f
2개의 변경된 파일7개의 추가작업 그리고 1개의 파일을 삭제
  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
-              style={{ marginBottom: 24 }}
               bodyStyle={{ padding: 0 }}
               bordered={false}
+              className={styles.activeCard}
               title="动态"
               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) {
+  .activeCard {
+    margin-bottom: 24px;
+  }
   .members {
     margin-bottom: 0;
   }
@@ -153,6 +156,9 @@
 }
 
 @media screen and (max-width: @screen-lg) {
+  .activeCard {
+    margin-bottom: 24px;
+  }
   .members {
     margin-bottom: 0;
   }