diff --git a/app/globals.css b/app/globals.css index fd9e750..44690e4 100644 --- a/app/globals.css +++ b/app/globals.css @@ -199,6 +199,10 @@ color: var(--color-ink); } +.article-prose :where(p, ul, ol, blockquote, details, .callout, [data-callout]) { + max-width: 72ch; +} + .prose :where(a) { color: var(--color-accent); text-decoration-thickness: 1px; @@ -266,6 +270,10 @@ margin: 2.5rem 0 1rem; } +.article-prose :where(p:has(> img:only-child)) { + max-width: none; +} + .prose :where(p:has(> img:only-child) + em), .prose :where(p:has(> img:only-child) + strong) { display: block; diff --git a/app/posts/[slug]/page.tsx b/app/posts/[slug]/page.tsx index 69549ec..f9d522e 100644 --- a/app/posts/[slug]/page.tsx +++ b/app/posts/[slug]/page.tsx @@ -35,8 +35,8 @@ export default async function PostPage({ params }: { params: Promise<{ slug: str <> -
-
+
+
@@ -67,7 +67,7 @@ export default async function PostPage({ params }: { params: Promise<{ slug: str
)} -
+