8000 Indent child items in navigation menu · activeadmin/activeadmin@b36fd5a · GitHub
[go: up one dir, main page]

Skip to content

Commit b36fd5a

Browse files
committed
Indent child items in navigation menu
1 parent 34bad56 commit b36fd5a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/views/active_admin/_main_navigation.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
<ul role="list" class="mt-1 space-y-1 hidden group-data-[open]:block">
2424
<% children.each do |j| %>
2525
<li data-item-id="<%= j.id %>">
26-
<%= link_to j.label(self), j.url(self), j.html_options.merge(class: "text-gray-600 hover:text-gray-900 dark:text-gray-400 dark:hover:text-white block rounded-md py-1.5 px-2 text-sm no-underline #{(current_menu_item?(j) ? "bg-gray-100 dark:bg-white/5 text-gray-900 dark:text-white selected" : "")}") %>
26+
<%= link_to j.label(self), j.url(self), j.html_options.merge(class: "text-gray-600 hover:text-gray-900 dark:text-gray-400 dark:hover:text-white block rounded-md py-1.5 px-2 ml-4 text-sm no-underline #{(current_menu_item?(j) ? "bg-gray-100 dark:bg-white/5 text-gray-900 dark:text-white selected" : "")}") %>
2727
</li>
2828
<% end %>
2929
</ul>

0 commit comments

Comments
 (0)
0