File tree Expand file tree Collapse file tree 2 files changed +13
-4
lines changed
routes/package/(_components) Expand file tree Collapse file tree 2 files changed +13
-4
lines changed Original file line number Diff line number Diff line change @@ -38,8 +38,12 @@ export function DocsView(
38
38
</ div >
39
39
) }
40
40
41
- < div class = "grid grid-cols-1 lg:grid-cols-4 gap-12" >
42
- < div class = { `min-w-0 ${ docs . toc ? "col-span-3" : "col-span-full" } ` } >
41
+ < div class = "grid grid-cols-1 lg:grid-cols-4 gap-8 lg:gap-12" >
42
+ < div
43
+ class = { `min-w-0 ${
44
+ docs . toc ? "lg:col-span-3 lg:row-start-1" : "col-span-full"
45
+ } `}
46
+ >
43
47
< div class = "ddoc" dangerouslySetInnerHTML = { { __html : docs . main } } />
44
48
45
49
{ showProvenanceBadge && selectedVersion . rekorLogId && (
@@ -83,9 +87,8 @@ export function DocsView(
83
87
</ div >
84
88
) }
85
89
</ div >
86
-
87
90
{ docs . toc && (
88
- < div class = "max-lg:hidden col-span-1 top-0 lg:sticky lg:max-h-screen box-border space-y-4 -mt-4 pt-4" >
91
+ < div class = "max-lg:row-start-1 lg: col-[span_1_/_-1] lg: top-0 lg:sticky lg:max-h-screen box-border space-y-4 -mt-4 pt-4" >
89
92
{ ! docs . breadcrumbs && (
90
93
< LocalSymbolSearch
91
94
scope = { params . scope }
Original file line number Diff line number Diff line change @@ -335,6 +335,12 @@ body .ddoc .markdown th {
335
335
@apply py-1.5;
336
336
}
337
337
338
+ body .ddoc .toc {
339
+ .topSymbols , .documentNavigation {
340
+ @apply max-lg:hidden;
341
+ }
342
+ }
343
+
338
344
/* These might seem redundant but Tailwind won't always load them in the compiled stylesheet unless they're explicitly included here. */
339
345
.score-ring-red {
340
346
@apply bg-red-500;
You can’t perform that action at this time.
0 commit comments