File tree 1 file changed +3
-2
lines changed
src/Elastic.Markdown/Slices/Layout
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 7
7
@if (Model .IsPrimaryNavEnabled && current is { Group .Index : not null })
8
8
{
9
9
<div class =" sticky top-0 py-6 bg-white z-10 border-b-1 border-grey-20 pr-4" >
10
- <details class =" block group border-1 border-grey-20 rounded-sm font-sans " >
10
+ <details class =" block group border-1 border-grey-20 rounded-sm font-sans" >
11
11
<summary class =" grid grid-cols-[1fr_auto] cursor-pointer font-semibold gap-1 hover:text-black pl-4 pr-2 py-2 group-open:border-b-1 border-grey-20" >
12
12
<span >
13
13
<a
14
14
class =" hover:underline text-blue-elastic hover:text-blue-elastic-100"
15
15
href =" @current.Group.Index?.Url"
16
- @Htmx.GetHxAttributes(current.Group.Index?.Url!)
16
+ @Htmx.GetHxAttributes(current.Group.Index?.Url!, true )
17
17
>
18
18
@current.Group.Index ? .NavigationTitle
19
19
</a >
37
37
if (item .Id == current ? .Id ) continue ;
38
38
<li class =" block" >
39
39
<a
40
+ onclick =" this.closest('details').removeAttribute('open')"
40
41
class =" block py-2 px-4 hover:underline hover:text-black hover:bg-grey-10 active:bg-blue-elastic-70 active:text-white font-semibold @(item.Group.Id == Model.Tree.Id ? " text-blue-elastic " : " " )"
41
42
href =" @item.Group.Index.Url"
42
43
@Htmx.GetHxAttributes(item.Group.Index.Url, false, " mouseover" ) >
You can’t perform that action at this time.
0 commit comments