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 3939 {
4040 var g = folder .Group ;
4141 <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 " ) " >
4444 <svg
4545 xmlns =" http://www.w3.org/2000/svg"
4646 fill =" none"
4747 viewBox =" 0 0 24 24"
4848 stroke-width =" 1.5"
4949 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 " )" >
5151 <path stroke-linecap =" round" stroke-linejoin =" round" d =" m19.5 8.25-7.5 7.5-7.5-7.5" />
5252 </svg >
5353 <input
5454 id =" @id"
5555 type =" checkbox"
5656 class =" hidden"
5757 aria-hidden =" true"
58- @(isTopLevel ? " checked" : " " )
59- @(isTopLevel ? " disabled" : " " )
6058 >
6159 </label >
6260 <a
6361 href =" @(g.Index?.Url ?? " " )"
6462 @Htmx.GetHxAttributes(g.Index?.Url ?? " " , Model.IsPrimaryNavEnabled && g.NavigationRootId == Model.RootNavigationId || true)
6563 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 " )" >
6765 @( g .Index ? .NavigationTitle ?? (g as TableOfContentsTree )? .Source .ToString () ?? " Untitled" )
6866 </a >
6967 </div >
You can’t perform that action at this time.
0 commit comments