diff --git a/components/layout/AppLayout.js b/components/layout/AppLayout.js index c30b1018..989128f9 100644 --- a/components/layout/AppLayout.js +++ b/components/layout/AppLayout.js @@ -1,6 +1,5 @@ import { Container } from 'react-basics'; import Head from 'next/head'; -import { useRouter } from 'next/router'; import NavBar from 'components/layout/NavBar'; import UpdateNotice from 'components/common/UpdateNotice'; import useRequireLogin from 'hooks/useRequireLogin'; diff --git a/components/layout/AppLayout.module.css b/components/layout/AppLayout.module.css index 58c1cacf..0afd11f9 100644 --- a/components/layout/AppLayout.module.css +++ b/components/layout/AppLayout.module.css @@ -18,4 +18,5 @@ min-height: 0; height: calc(100vh - 60px); overflow-y: auto; + padding-bottom: 60px; } diff --git a/components/layout/Footer.js b/components/layout/Footer.js index 7cc5d3de..3a07c12a 100644 --- a/components/layout/Footer.js +++ b/components/layout/Footer.js @@ -1,31 +1,12 @@ -import { Row, Column } from 'react-basics'; -import { FormattedMessage } from 'react-intl'; -import { CURRENT_VERSION, HOMEPAGE_URL, REPO_URL } from 'lib/constants'; -import { labels } from 'components/messages'; +import { CURRENT_VERSION, HOMEPAGE_URL } from 'lib/constants'; import styles from './Footer.module.css'; export function Footer() { return ( ); } diff --git a/components/layout/Footer.module.css b/components/layout/Footer.module.css index a23f496d..348c92d8 100644 --- a/components/layout/Footer.module.css +++ b/components/layout/Footer.module.css @@ -1,16 +1,12 @@ .footer { + display: flex; + flex-direction: row; + justify-content: flex-end; font-size: var(--font-size-sm); - text-align: center; line-height: 30px; - margin: 60px 0; + margin: 40px 0; } .footer a { color: var(--font-color100); } - -.version { - text-align: right; - padding-right: 10px; - white-space: nowrap; -} diff --git a/components/layout/Header.js b/components/layout/Header.js index 2007b1d9..21cdd251 100644 --- a/components/layout/Header.js +++ b/components/layout/Header.js @@ -9,7 +9,7 @@ import styles from './Header.module.css'; export function Header() { return (
- + diff --git a/components/layout/Header.module.css b/components/layout/Header.module.css index e796b6f0..26f30552 100644 --- a/components/layout/Header.module.css +++ b/components/layout/Header.module.css @@ -1,8 +1,13 @@ .header { display: flex; + flex-direction: row; align-items: center; width: 100%; - padding: 30px 30px 0 30px; + height: 100px; +} + +.row { + align-items: center; } .title { @@ -35,18 +40,8 @@ } @media only screen and (max-width: 768px) { - .header { - padding: 0 30px; - } - .buttons, .links { display: none; } - - .title { - flex: 1; - padding: 0.5rem; - margin-bottom: 0.5rem; - } } diff --git a/components/layout/Page.module.css b/components/layout/Page.module.css index 42aafbe1..c546971b 100644 --- a/components/layout/Page.module.css +++ b/components/layout/Page.module.css @@ -4,11 +4,4 @@ flex-direction: column; background: var(--base50); position: relative; - padding: 30px; -} - -@media only screen and (max-width: 768px) { - .page { - padding: 10px 0; - } } diff --git a/components/layout/PageHeader.module.css b/components/layout/PageHeader.module.css index 03a1c7c8..b54ecfcf 100644 --- a/components/layout/PageHeader.module.css +++ b/components/layout/PageHeader.module.css @@ -1,10 +1,12 @@ .header { display: flex; + flex-direction: row; justify-content: space-between; align-items: center; align-content: center; align-self: stretch; flex-wrap: wrap; + height: 100px; } .header a { diff --git a/package.json b/package.json index fd4d4522..868b3cdf 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "umami", - "version": "2.4.0", + "version": "2.4.1", "description": "A simple, fast, privacy-focused alternative to Google Analytics.", "author": "Mike Cao ", "license": "MIT",