@@ -35,25 +35,19 @@ export function PageBody(props: {
3535 return (
3636 < >
3737 < main
38- className = {
39- tcls (
40- 'flex-1' ,
41- 'relative' ,
42- 'py-8' ,
43- 'lg:px-12' ,
44- // Allow words to break if they are too long.
45- 'break-anywhere' ,
46- // When in api page mode without the aside, we align with the border of the main content
47- 'page-api-block:xl:max-2xl:pr-0' ,
48- // Max size to ensure one column in api is aligned with rest of content (2 x 3xl) + (gap-3 + 2) * px-12
49- 'page-api-block:max-w-screen-2xl' ,
50- 'page-api-block:mx-auto'
51-
52- // page.layout.tableOfContents ? null : 'xl:ml-56'
53- ) +
54- ( asFullWidth ? ' page-full-width' : ' page-default-width' ) +
55- ( ! page . layout . tableOfContents ? ' page-no-toc' : ' page-has-toc' )
56- }
38+ className = { tcls (
39+ 'relative min-w-0 flex-1' ,
40+ 'py-8 lg:px-12' ,
41+ // Allow words to break if they are too long.
42+ 'break-anywhere' ,
43+ // When in api page mode without the aside, we align with the border of the main content
44+ 'page-api-block:xl:max-2xl:pr-0' ,
45+ // Max size to ensure one column in api is aligned with rest of content (2 x 3xl) + (gap-3 + 2) * px-12
46+ 'page-api-block:mx-auto page-api-block:max-w-screen-2xl' ,
47+ // page.layout.tableOfContents ? null : 'xl:ml-56',
48+ asFullWidth ? 'page-full-width' : 'page-default-width' ,
49+ page . layout . tableOfContents ? 'page-has-toc' : 'page-no-toc'
50+ ) }
5751 >
5852 < PreservePageLayout asFullWidth = { asFullWidth } />
5953 { page . cover && page . layout . cover && page . layout . coverSize === 'hero' ? (
@@ -66,14 +60,14 @@ export function PageBody(props: {
6660 fallback = {
6761 < DocumentViewSkeleton
6862 document = { document }
69- blockStyle = { [ ' page-api-block:ml-0' ] }
63+ blockStyle = " page-api-block:ml-0"
7064 />
7165 }
7266 >
7367 < DocumentView
7468 document = { document }
75- style = { [ '[ &>*+*]:mt-5' , 'grid' ] }
76- blockStyle = { [ ' page-api-block:ml-0' ] }
69+ style = "grid [ &>*+*]:mt-5"
70+ blockStyle = " page-api-block:ml-0"
7771 context = { {
7872 mode : 'default' ,
7973 contentContext : context ,
@@ -88,23 +82,9 @@ export function PageBody(props: {
8882 < PageFooterNavigation context = { context } page = { page } />
8983 ) : null }
9084
91- < div
92- className = { tcls (
93- 'flex' ,
94- 'flex-row' ,
95- 'flex-wrap' ,
96- 'gap-4' ,
97- 'items-center' ,
98- 'mt-6' ,
99- 'max-w-3xl' ,
100- 'mx-auto' ,
101- 'page-api-block:ml-0' ,
102- 'text-tint' ,
103- 'contrast-more:text-tint-strong'
104- ) }
105- >
85+ < div className = "mx-auto mt-6 page-api-block:ml-0 flex max-w-3xl flex-row flex-wrap items-center gap-4 text-tint contrast-more:text-tint-strong" >
10686 { updatedAt ? (
107- < p className = { tcls ( ' mr-auto text-sm' ) } >
87+ < p className = " mr-auto text-sm" >
10888 { t ( language , 'page_last_modified' , < DateRelative value = { updatedAt } /> ) }
10989 </ p >
11090 ) : null }
0 commit comments