File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed
src/Elastic.Markdown/Slices/Layout Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change 39
39
{
40
40
var g = folder .Group ;
41
41
<li class =" flex flex-wrap group-navigation @(isTopLevel ? " py-8 not-last:border-b-1 border-grey-20 pr-4 " : " mt-4 lg:mt-3 " )" >
42
- <div class =" peer flex items-start gap-1" >
43
- <label for =" @id" class =" group/label" >
42
+ <div class =" peer grid gap-1 @(isTopLevel ? " grid-cols-[1fr_auto] w-full " : " grid-cols-[auto_1fr] " ) " >
43
+ <label for =" @id" class =" group/label flex pt-0.5 @(isTopLevel ? " order-1 items-center mr-3 " : " order-0 items-start " ) " >
44
44
<svg
45
45
xmlns =" http://www.w3.org/2000/svg"
46
46
fill =" none"
47
47
viewBox =" 0 0 24 24"
48
48
stroke-width =" 1.5"
49
49
stroke =" currentColor"
50
- class =" w-3 mt-[3px] shrink-0 -rotate-90 group-has-checked/label:rotate-0 cursor-pointer @(isTopLevel ? " hidden " : " " )" >
50
+ class =" shrink-0 -rotate-90 group-has-checked/label:rotate-0 cursor-pointer @(isTopLevel ? " w-4 " : " w-3 " )" >
51
51
<path stroke-linecap =" round" stroke-linejoin =" round" d =" m19.5 8.25-7.5 7.5-7.5-7.5" />
52
52
</svg >
53
53
<input
54
54
id =" @id"
55
55
type =" checkbox"
56
56
class =" hidden"
57
57
aria-hidden =" true"
58
- @(isTopLevel ? " checked" : " " )
59
- @(isTopLevel ? " disabled" : " " )
60
58
>
61
59
</label >
62
60
<a
63
61
href =" @(g.Index?.Url ?? " " )"
64
62
@Htmx.GetHxAttributes(g.Index?.Url ?? " " , Model.IsPrimaryNavEnabled && g.NavigationRootId == Model.RootNavigationId || true)
65
63
id =" page-@(g.Index?.Id ?? id)"
66
- class =" sidebar-link @(isTopLevel ? " font-semibold font-sans mb-1 text-base " : " " )" >
64
+ class =" sidebar-link @(isTopLevel ? " font-semibold font-sans text-base " : " " ) @(isTopLevel ? " order-0 " : " order-1 " )" >
67
65
@( g .Index ? .NavigationTitle ?? (g as TableOfContentsTree )? .Source .ToString () ?? " Untitled" )
68
66
</a >
69
67
</div >
You can’t perform that action at this time.
0 commit comments