From f42e8b9e7c7d2dfd255e61226557dc6e342ce74b Mon Sep 17 00:00:00 2001 From: Michael Schramm Date: Wed, 10 Jun 2020 17:36:17 +0200 Subject: [PATCH] add mobile improvements --- CHANGELOG.md | 3 +++ components/auth/footer.module.scss | 16 ++++++++++++++++ components/auth/footer.tsx | 13 +++---------- pages/admin/forms/[id]/submissions.tsx | 2 ++ pages/admin/forms/index.tsx | 9 ++++++++- pages/admin/index.tsx | 6 +++--- pages/admin/users/index.tsx | 6 +++++- pages/login/index.module.scss | 11 +++++++++++ pages/login/index.tsx | 9 ++------- pages/register.module.scss | 19 +++++++++++++++++++ pages/register.tsx | 9 ++------- 11 files changed, 74 insertions(+), 29 deletions(-) create mode 100644 components/auth/footer.module.scss create mode 100644 pages/login/index.module.scss create mode 100644 pages/register.module.scss diff --git a/CHANGELOG.md b/CHANGELOG.md index 8f2f23c..c513952 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,9 @@ and this project adheres to [Semantic Versioning](http://semver.org/). ## UNRELEASED ### Added + +- mobile improvements for lists and home page + ### Changed ### Fixed ### Security diff --git a/components/auth/footer.module.scss b/components/auth/footer.module.scss new file mode 100644 index 0000000..a4bd2ab --- /dev/null +++ b/components/auth/footer.module.scss @@ -0,0 +1,16 @@ +.footer { + position: absolute; + bottom: 0; + left: 0; + right: 0; + display: flex; + flex-direction: row; + align-items: center; + + @media (max-width: 600px) { + position: relative; + margin-bottom: 16px; + flex-direction: column; + text-align: center; + } +} diff --git a/components/auth/footer.tsx b/components/auth/footer.tsx index 584b8db..04a6450 100644 --- a/components/auth/footer.tsx +++ b/components/auth/footer.tsx @@ -7,6 +7,7 @@ import { useTranslation } from 'react-i18next' import { SETTINGS_QUERY, SettingsQueryData } from '../../graphql/query/settings.query' import { languages } from '../../i18n' import { clearAuth, withAuth } from '../with.auth' +import scss from './footer.module.scss' interface Props { me?: { @@ -26,16 +27,7 @@ const AuthFooterInner: React.FC = (props) => { } return ( -