minor template improvements

This commit is contained in:
Alex Turchyn
2023-07-02 13:30:11 +00:00
parent 90e1aa606e
commit 346e31ca1f
7 changed files with 98 additions and 47 deletions
+3 -1
View File
@@ -1,7 +1,9 @@
<span class="enabled">
<span class="flex items-center justify-center space-x-2">
<%= icon %>
<span><%= title %></span>
<% if title %>
<span><%= title %></span>
<% end %>
</span>
</span>
<span class="disabled">
+9 -3
View File
@@ -10,12 +10,18 @@
<label tabindex="0" class="cursor-pointer bg-base-content text-purple-300 rounded-full p-2 w-9 justify-center flex">
<span class="text-sm align-text-top"><%= current_user.initials %></span>
</label>
<ul tabindex="0" class="z-10 dropdown-content p-2 mt-2 shadow menu text-base bg-base-100 rounded-box whitespace-nowrap">
<ul tabindex="0" class="z-10 dropdown-content p-2 mt-2 shadow menu text-base bg-base-100 rounded-box whitespace-nowrap text-right">
<li>
<%= link_to 'Profile', settings_profile_index_path, class: 'text-right' %>
<%= link_to settings_profile_index_path do %>
<%= svg_icon('adjustments', class: 'w-5 h-5 stroke-2') %>
<span class="mr-1">Profile</span>
<% end %>
</li>
<li>
<%= link_to 'Sign out', destroy_user_session_path, data: { turbo_method: :delete } %>
<%= link_to destroy_user_session_path, data: { turbo_method: :delete } do %>
<%= svg_icon('logout', class: 'w-5 h-5 stroke-2') %>
<span class="mr-1">Sign out</span>
<% end %>
</li>
</ul>
</div>
+2 -2
View File
@@ -1,6 +1,6 @@
<menu-active class="block w-full md:w-52">
<div class="">
<ul class="menu px-0">
<div>
<ul class="menu px-0 space-y-1">
<li class="menu-title py-0"><span>Settings</span></li>
<li></li>
<li>