Use variant declarations instead of custom methods

This commit is contained in:
Râu Cao
2023-09-06 12:38:47 +02:00
parent def44618ef
commit 64d09cfb7f
2 changed files with 6 additions and 10 deletions

View File

@@ -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">