Use variant declarations instead of custom methods
This commit is contained in:
@@ -41,7 +41,7 @@
|
||||
<div class="flex items-center gap-6">
|
||||
<% if current_user.avatar.attached? %>
|
||||
<p class="flex-none">
|
||||
<%= image_tag current_user.reload.avatar_256px, class: "h-24 w-24 rounded-lg" %>
|
||||
<%= image_tag current_user.reload.avatar.variant(:medium), class: "h-24 w-24 rounded-lg" %>
|
||||
</p>
|
||||
<% end %>
|
||||
<div class="grow">
|
||||
|
||||
Reference in New Issue
Block a user