From 6670f9f87ddd30e506d6c5fc88d5aa8dbee60a97 Mon Sep 17 00:00:00 2001 From: afc163 Date: Tue, 29 Aug 2017 19:33:13 +0800 Subject: [PATCH] Fix footer --- src/layouts/BasicLayout.js | 30 +++++++++++++++--------------- src/layouts/PageHeaderLayout.js | 6 +++--- src/routes/Forms/AdvancedForm.js | 1 + src/routes/Forms/style.less | 5 +++++ 4 files changed, 24 insertions(+), 18 deletions(-) diff --git a/src/layouts/BasicLayout.js b/src/layouts/BasicLayout.js index 75db512d..8b5ce710 100644 --- a/src/layouts/BasicLayout.js +++ b/src/layouts/BasicLayout.js @@ -229,23 +229,23 @@ class BasicLayout extends React.PureComponent { - + {children} + Copyright 2017 蚂蚁金服体验技术部出品} + /> - Copyright 2017 蚂蚁金服体验技术部出品} - /> diff --git a/src/layouts/PageHeaderLayout.js b/src/layouts/PageHeaderLayout.js index ef1f0f6d..1573b8a9 100644 --- a/src/layouts/PageHeaderLayout.js +++ b/src/layouts/PageHeaderLayout.js @@ -1,9 +1,9 @@ import React from 'react'; import PageHeader from '../components/PageHeader'; -export default ({ children, ...restProps }) => ( -
+export default ({ children, wrapperClassName, ...restProps }) => ( +
- {children ?
{children}
: null} + {children ?
{children}
: null}
); diff --git a/src/routes/Forms/AdvancedForm.js b/src/routes/Forms/AdvancedForm.js index 144374cf..95f10858 100644 --- a/src/routes/Forms/AdvancedForm.js +++ b/src/routes/Forms/AdvancedForm.js @@ -97,6 +97,7 @@ function AdvancedForm({ form, dispatch, submitting }) {
diff --git a/src/routes/Forms/style.less b/src/routes/Forms/style.less index b74d8a64..14261a3b 100644 --- a/src/routes/Forms/style.less +++ b/src/routes/Forms/style.less @@ -79,3 +79,8 @@ padding-bottom: 12.5px !important; } } + +// custom footer for fixed footer toolbar +.withFooterToolbar + div { + padding-bottom: 64px; +} -- GitLab