@@ -9,8 +9,6 @@ type Props = {
99 content : string ;
1010} ;
1111
12-
13-
1412export function PostBody ( { content } : Props ) {
1513 return (
1614 < Markdown
@@ -20,10 +18,10 @@ export function PostBody({ content }: Props) {
2018 const { children, className, node, ...rest } = props ;
2119 return (
2220 < Text
23- fontSize = { [ "md" , "2xl" ] }
21+ fontSize = { { base : "md" , lg : "2xl" } }
2422 className = { merriweather . className }
2523 fontWeight = { "300" }
26- marginBlock = { [ "0.8rem" , "1rem" ] }
24+ marginBlock = { { base : "0.8rem" , lg : "1rem" } }
2725 textIndent = { "2rem" }
2826 lineHeight = { "taller" }
2927 >
@@ -37,7 +35,7 @@ export function PostBody({ content }: Props) {
3735 return (
3836 < Heading
3937 as = "h1"
40- fontSize = { [ "4xl" , "6xl" ] }
38+ fontSize = { { base : "4xl" , lg : "6xl" } }
4139 lineHeight = "short"
4240 className = { notoSerif . className }
4341 >
@@ -52,7 +50,7 @@ export function PostBody({ content }: Props) {
5250 return (
5351 < Heading
5452 as = "h2"
55- fontSize = { [ "3xl" , "5xl" ] }
53+ fontSize = { { base : "3xl" , lg : "5xl" } }
5654 lineHeight = "short"
5755 className = { notoSerif . className }
5856 >
@@ -67,7 +65,7 @@ export function PostBody({ content }: Props) {
6765 return (
6866 < Heading
6967 as = "h3"
70- fontSize = { [ "2xl" , "4xl" ] }
68+ fontSize = { { base : "2xl" , lg : "4xl" } }
7169 lineHeight = "short"
7270 className = { notoSerif . className }
7371 >
@@ -82,7 +80,7 @@ export function PostBody({ content }: Props) {
8280 return (
8381 < Heading
8482 as = "h4"
85- fontSize = { [ "xl" , "3xl" ] }
83+ fontSize = { { base : "xl" , lg : "3xl" } }
8684 lineHeight = "short"
8785 className = { notoSerif . className }
8886 >
@@ -97,7 +95,7 @@ export function PostBody({ content }: Props) {
9795 return (
9896 < Heading
9997 as = "h5"
100- fontSize = { [ "lg" , "2xl" ] }
98+ fontSize = { { base : "lg" , lg : "2xl" } }
10199 lineHeight = "short"
102100 className = { notoSerif . className }
103101 >
@@ -112,7 +110,7 @@ export function PostBody({ content }: Props) {
112110 return (
113111 < Heading
114112 as = "h6"
115- fontSize = { [ "md" , "xl" ] }
113+ fontSize = { { base : "md" , lg : "xl" } }
116114 lineHeight = "short"
117115 className = { notoSerif . className }
118116 >
0 commit comments