@@ -35,25 +35,19 @@ export function PageBody(props: {
35
35
return (
36
36
< >
37
37
< 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
+ ) }
57
51
>
58
52
< PreservePageLayout asFullWidth = { asFullWidth } />
59
53
{ page . cover && page . layout . cover && page . layout . coverSize === 'hero' ? (
@@ -66,14 +60,14 @@ export function PageBody(props: {
66
60
fallback = {
67
61
< DocumentViewSkeleton
68
62
document = { document }
69
- blockStyle = { [ ' page-api-block:ml-0' ] }
63
+ blockStyle = " page-api-block:ml-0"
70
64
/>
71
65
}
72
66
>
73
67
< DocumentView
74
68
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"
77
71
context = { {
78
72
mode : 'default' ,
79
73
contentContext : context ,
@@ -88,23 +82,9 @@ export function PageBody(props: {
88
82
< PageFooterNavigation context = { context } page = { page } />
89
83
) : null }
90
84
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" >
106
86
{ updatedAt ? (
107
- < p className = { tcls ( ' mr-auto text-sm' ) } >
87
+ < p className = " mr-auto text-sm" >
108
88
{ t ( language , 'page_last_modified' , < DateRelative value = { updatedAt } /> ) }
109
89
</ p >
110
90
) : null }
0 commit comments