From 98568d2e4d0ae568d38dd85388bfad5bf9225193 Mon Sep 17 00:00:00 2001 From: Audrey Hamelers <hamelers@ebi.ac.uk> Date: Mon, 11 Mar 2019 16:16:06 +0000 Subject: [PATCH] style fix --- app/components/submission-wizard/SubmitComplete.jsx | 2 +- app/components/ui/atoms/Page.jsx | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/app/components/submission-wizard/SubmitComplete.jsx b/app/components/submission-wizard/SubmitComplete.jsx index 0336d27aa..642b0b7e9 100644 --- a/app/components/submission-wizard/SubmitComplete.jsx +++ b/app/components/submission-wizard/SubmitComplete.jsx @@ -25,7 +25,7 @@ const SubmitComplete = ({ currentUser, cancel, manuscript, history }) => { const done = states.indexOf('xml-complete') const sent = states.indexOf('ncbi-ready') return ( - <Page> + <Page withHeader> <H1>Thank you for your submission</H1> <p> {`Your submission is `} diff --git a/app/components/ui/atoms/Page.jsx b/app/components/ui/atoms/Page.jsx index 856dcd0ca..d17b62d26 100755 --- a/app/components/ui/atoms/Page.jsx +++ b/app/components/ui/atoms/Page.jsx @@ -4,7 +4,9 @@ import { th, override } from '@pubsweet/ui-toolkit' const Page = styled.div` margin: 0 auto; max-width: 1000px; - min-height: calc(100vh - (${th('gridUnit')} * 20)); + min-height: calc( + 100vh - (${th('gridUnit')} * ${props => (props.withHeader ? '28' : '20')}) + ); padding: ${th('gridUnit')} calc(${th('gridUnit')} * 4) calc(${th('gridUnit')} * 4); box-sizing: border-box; -- GitLab