adjust sidenav icon positioning

This commit is contained in:
drusepth 2022-03-22 15:43:23 -07:00
parent e478b7b0b6
commit fa9287a079

View File

@ -52,7 +52,7 @@
<% @activated_content_types.each do |content_type| %>
<% content_type_klass = content_class_from_name(content_type) %>
<%= link_to main_app.polymorphic_path(content_type_klass), class: 'flex items-center px-4 py-2 cursor-pointer group hover:bg-notebook-blue hover:text-white rounded-l-full' do %>
<i class="material-icons <%= content_type_klass.text_color %> shrink-0 w-6 h-6 mr-2"><%= content_type_klass.icon %></i>
<i class="material-icons <%= content_type_klass.text_color %> shrink-0 w-8 h-8 mr-2 bg-white rounded-full p-1"><%= content_type_klass.icon %></i>
<span class="flex-grow text-sm"><%= content_type.pluralize %></span>
<span class="bg-gray-100 rounded px-1 text-xs group-hover:bg-notebook-blue">
<%= number_with_delimiter @current_user_content.fetch(content_type, []).count %>