Skip to content

Commit 9023532

Browse files
authored
Fix left nav indentation (#1088)
1 parent 8279945 commit 9023532

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
<a
1515
href="@f.Url"
1616
@Htmx.GetNavHxAttributes(Model.IsPrimaryNavEnabled && f.NavigationRoot.Id == Model.RootNavigationId || true)
17-
class="sidebar-link group-[.current]/li:text-blue-elastic!"
17+
class="sidebar-link grow group-[.current]/li:text-blue-elastic!"
1818
id="page-@id"
1919
>
2020
@f.NavigationTitle
@@ -24,7 +24,7 @@
2424
else if (item is GroupNavigationItem { Group: { NavigationItems.Count: 0, Index: not null } } group)
2525
{
2626
var f = group.Group.Index;
27-
<li class="flex group/li pr-4 @(isTopLevel ? "font-semibold mt-6 pr-4" : "ml-4")">
27+
<li class="flex group/li pr-8 @(isTopLevel ? "font-semibold mt-6" : "mt-4")">
2828
<a
2929
href="@f.Url"
3030
@Htmx.GetNavHxAttributes(Model.IsPrimaryNavEnabled && f.NavigationRoot.Id == Model.RootNavigationId || true)

0 commit comments

Comments
 (0)