Skip to content

Open source alternative to Semrush and Ahrefs

Fix docs page layout on mobile (#880)

Carter Smithf9ccf0d8d2f5
diff --git a/web/src/components/content-index.tsx b/web/src/components/content-index.tsx
index 68bfb262..78d1a352 100644
--- a/web/src/components/content-index.tsx
+++ b/web/src/components/content-index.tsx
@@ -25,7 +25,7 @@ export function ContentIndex({
route,
}: ContentIndexProps) {
return (
- <div className="max-w-3xl mx-auto px-6 py-12 md:py-24">
+ <div className="mx-auto w-full min-w-0 max-w-3xl px-6 py-12 [grid-area:main] md:py-24">
<p className="text-sm font-medium text-fd-muted-foreground">{eyebrow}</p>
<h1 className="mt-3 text-4xl font-bold tracking-tight text-fd-foreground md:text-5xl">
{title}
diff --git a/web/src/components/content-post.tsx b/web/src/components/content-post.tsx
index 1d968eff..d09a3598 100644
--- a/web/src/components/content-post.tsx
+++ b/web/src/components/content-post.tsx
@@ -27,7 +27,7 @@ export function ContentPost({
Content,
}: ContentPostProps) {
return (
- <article className="mx-auto w-full min-w-0 max-w-3xl px-6 py-12 text-fd-foreground md:py-24">
+ <article className="mx-auto w-full min-w-0 max-w-3xl px-6 py-12 text-fd-foreground [grid-area:main] md:py-24">
<header className="mb-8">
<div className="mb-4">
<Link