Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

Address layout width for narrow docs

Terry Sutton21ee8427eec1
diff --git a/apps/docs/layouts/Default.tsx b/apps/docs/layouts/Default.tsx
index 7b7f4755b92..a68a0cedf7b 100644
--- a/apps/docs/layouts/Default.tsx
+++ b/apps/docs/layouts/Default.tsx
@@ -52,7 +52,11 @@ const Layout: FC<Props> = ({ meta, children, toc, menuItems, currentPage }) => {
: 'col-span-12 lg:col-span-9'
} py-2 lg:py-4 px-2 lg:px-8 mx-auto`}
>
- <article className="doc-content-container prose dark:prose-dark dark:bg-scale-200 width-full mt-8 2xl:max-w-[880px] ">
+ <article
+ className={`${
+ meta?.hide_table_of_contents || !hasTableOfContents ? 'xl:min-w-[880px]' : ''
+ } doc-content-container prose dark:prose-dark dark:bg-scale-200 width-full mt-8 2xl:max-w-[880px]`}
+ >
{children}
</article>
</div>