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}
-