فهرست منبع

Fix Footer margin

afc163 8 سال پیش
والد
کامیت
bbc2a41c8f
2فایلهای تغییر یافته به همراه16 افزوده شده و 16 حذف شده
  1. 1 1
      src/components/GlobalFooter/index.less
  2. 15 15
      src/layouts/BasicLayout.js

+ 1 - 1
src/components/GlobalFooter/index.less

@@ -1,7 +1,7 @@
 @import "~antd/lib/style/themes/default.less";
 
 .globalFooter {
-  padding: 32px 28px 16px;
+  margin: 32px 28px 16px;
   text-align: center;
 
   .links {

+ 15 - 15
src/layouts/BasicLayout.js

@@ -229,23 +229,23 @@ class BasicLayout extends React.PureComponent {
                 </Dropdown>
               </div>
             </Header>
-            <Content style={{ margin: 24, height: '100%' }}>
+            <Content style={{ margin: '24px 24px 0 24px', height: '100%' }}>
               {children}
-              <GlobalFooter
-                links={[{
-                  title: '帮助',
-                  href: '',
-                }, {
-                  title: '隐私',
-                  href: '',
-                }, {
-                  title: '条款',
-                  href: '',
-                  blankTarget: true,
-                }]}
-                copyright={<div>Copyright <Icon type="copyright" /> 2017 蚂蚁金服体验技术部出品</div>}
-              />
             </Content>
+            <GlobalFooter
+              links={[{
+                title: '帮助',
+                href: '',
+              }, {
+                title: '隐私',
+                href: '',
+              }, {
+                title: '条款',
+                href: '',
+                blankTarget: true,
+              }]}
+              copyright={<div>Copyright <Icon type="copyright" /> 2017 蚂蚁金服体验技术部出品</div>}
+            />
           </Layout>
         </Layout>
       </DocumentTitle>