From 253c6f4490ed4e4922a951f472102fc245e09d09 Mon Sep 17 00:00:00 2001 From: Alexander Graebe Date: Fri, 18 Dec 2020 19:01:47 +0000 Subject: [PATCH] fix: footer and content width --- src/common/constants.ts | 1 + src/components/layouts/base-layout.tsx | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/common/constants.ts b/src/common/constants.ts index 24a9dfb6..8f8110db 100644 --- a/src/common/constants.ts +++ b/src/common/constants.ts @@ -1,5 +1,6 @@ export const SIDEBAR_WIDTH = 208; export const TOC_WIDTH = 208; +export const CONTENT_MAX_WIDTH = 1175; export const SHIKI_THEME = 'Material-Theme-Default'; export const THEME_STORAGE_KEY = 'theme'; diff --git a/src/components/layouts/base-layout.tsx b/src/components/layouts/base-layout.tsx index 136dd539..9996c574 100644 --- a/src/components/layouts/base-layout.tsx +++ b/src/components/layouts/base-layout.tsx @@ -5,7 +5,7 @@ import { Header } from '../header'; import { Main } from '../main'; import { Footer } from '../footer'; -import { SIDEBAR_WIDTH } from '@common/constants'; +import { SIDEBAR_WIDTH, CONTENT_MAX_WIDTH } from '@common/constants'; import { useWatchActiveHeadingChange } from '@common/hooks/use-active-heading'; import { useRouter } from 'next/router'; import { MobileMenu } from '@components/mobile-menu'; @@ -35,14 +35,14 @@ const BaseLayout: React.FC<{ isHome?: boolean }> = ({ children }) => {
{children}
-