Fix layout

This commit is contained in:
braginini
2023-05-24 12:34:36 +02:00
parent 4b1eee2ce8
commit 55fc965484
2 changed files with 3 additions and 4 deletions

View File

@@ -3,7 +3,7 @@ import Link from 'next/link'
import { useRouter } from 'next/router'
import clsx from 'clsx'
import { Logo, Logomark } from '@/components/Logo'
import { Logo } from '@/components/Logo'
import { Prose } from '@/components/Prose'
import {HeroPattern} from "@/components/HeroPattern";
import {NavigationDocs} from "@/components/NavigationDocs";
@@ -167,7 +167,6 @@ export function Layout({ children, title, tableOfContents }) {
</main>
<Footer />
</div>
{/*{router.route.startsWith("/ipa/resources") && <div className="w-64"></div>}*/}
{!router.route.startsWith("/ipa/resources") && <div className="hidden xl:sticky xl:top-[4.5rem] xl:-mr-6 xl:block xl:h-[calc(100vh-4.5rem)] xl:flex-none xl:overflow-y-auto xl:py-16 xl:pr-6">
<nav aria-labelledby="on-this-page-title" className="w-80">
{tableOfContents.length > 0 && (

View File

@@ -45,11 +45,11 @@ module.exports = ({ theme }) => ({
// Layout
'> *': {
maxWidth: theme('maxWidth.2xl'),
marginLeft: 0,
marginLeft: 10,
marginRight: 'auto',
'@screen lg': {
maxWidth: theme('maxWidth.3xl'),
marginLeft: 0,
marginLeft: 10,
marginRight: `calc(50% - min(50%, ${theme('maxWidth.lg')}))`,
},
},