diff options
| author | 2021-01-28 19:31:25 +0200 | |
|---|---|---|
| committer | 2021-01-28 19:32:42 +0200 | |
| commit | e221e20a82411dabc4d6c21172f0c68badc64364 (patch) | |
| tree | 6955f7da08040471de3f519f0e9e2c74ed33cdb7 /src/pages | |
| parent | Remove debugging setSent (diff) | |
Remove unnecessary separator from sent form return home button
Diffstat (limited to 'src/pages')
| -rw-r--r-- | src/pages/FormPage.tsx | 12 | 
1 files changed, 10 insertions, 2 deletions
diff --git a/src/pages/FormPage.tsx b/src/pages/FormPage.tsx index 36ca86f..abb008f 100644 --- a/src/pages/FormPage.tsx +++ b/src/pages/FormPage.tsx @@ -13,7 +13,7 @@ import ScrollToTop from "../components/ScrollToTop";  import { Form, FormFeatures, getForm } from "../api/forms";  import colors from "../colors"; -import { unselectable, containerStyles, separatorStyles, returnStyles }  from "../commonStyles"; +import { unselectable, containerStyles, returnStyles }  from "../commonStyles";  import { Question, QuestionType } from "../api/question";  import ApiClient from "../api/client"; @@ -27,6 +27,15 @@ interface NavigationProps {  }  class Navigation extends React.Component<NavigationProps> { +    separatorStyles = css` +      height: 0; +      display: none; + +      @media (max-width: 850px) { +        display: block; +      } +    `; +      submitStyles = css`        text-align: right;        white-space: nowrap; @@ -121,7 +130,6 @@ function FormPage(): JSX.Element {                      <div className={ "return_button closed" }>                          <Link to="/" css={returnStyles}>Return Home</Link>                      </div> -                    <br css={separatorStyles}/>                  </div>              </div>          );  |