Skip to content

Commit ab1ca67

Browse files
authored
Exclude navigation elements from browser search if collapsed (#583)
1 parent 25c0583 commit ab1ca67

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Elastic.Markdown/Slices/Layout/_TocTreeNav.cshtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
</label>
6363
@if (g.NavigationItems.Count > 0)
6464
{
65-
<ul class="h-0 w-full overflow-y-hidden peer-has-checked:h-auto peer-has-[:focus]:h-auto has-[:focus]:h-auto">
65+
<ul class="w-full overflow-y-hidden hidden peer-has-checked:block peer-has-[:focus]:block has-[:focus]:block">
6666
@await RenderPartialAsync(_TocTreeNav.Create(new NavigationTreeItem
6767
{
6868
Level = g.Depth,

0 commit comments

Comments
 (0)