migrate to daisy UI v3.0.3

This commit is contained in:
Alex Turchyn
2023-06-04 21:30:50 +03:00
parent f5c00ada31
commit 0c7ac32935
10 changed files with 115 additions and 156 deletions
+3 -3
View File
@@ -6,15 +6,15 @@
<% if signed_in? %>
<div class="space-x-6">
<%= link_to 'Settings', settings_storage_index_path, class: 'font-medium text-lg' %>
<div class="dropdown dropdown-end">
<div class="dropdown dropdown-end z-50">
<label tabindex="0" class="cursor-pointer bg-neutral-focus text-neutral-content rounded-full w-8 p-2">
<span class="text-sm align-text-top"><%= current_user.initials %></span>
</label>
<ul tabindex="0" class="dropdown-content p-2 mt-2 shadow menu bg-base-100 rounded-box whitespace-nowrap">
<li class>
<li>
<%= link_to 'Profile', settings_profile_index_path, class: 'text-right' %>
</li>
<li class>
<li>
<%= link_to 'Sign out', destroy_user_session_path, data: { turbo_method: :delete } %>
</li>
</ul>