Skip to content

Commit

Permalink
Indent child items in navigation menu
Browse files Browse the repository at this point in the history
  • Loading branch information
hasghari committed Jan 10, 2024
1 parent 2d833e3 commit 8349e5e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/active_admin/_main_navigation.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<ul role="list" class="mt-1 space-y-1 hidden group-data-[open]:block">
<% children.each do |j| %>
<li data-item-id="<%= j.id %>">
<%= 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" : "")}") %>
<%= 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" : "")}") %>
</li>
<% end %>
</ul>
Expand Down

0 comments on commit 8349e5e

Please sign in to comment.