mirror of
https://github.com/we-promise/sure.git
synced 2026-04-08 14:54:49 +00:00
* fix: show user small picture and fallback when loading * fix: add alt to avatar * fix: fixed version
9 lines
425 B
Plaintext
9 lines
425 B
Plaintext
<%# locals: (avatar_url: nil, initials: "U", lazy: false) %>
|
|
|
|
<div class="w-full h-full bg-surface-inset hover:bg-surface-inset-hover text-secondary rounded-full flex items-center justify-center text-lg uppercase relative">
|
|
<%= initials %>
|
|
<% if avatar_url.present? %>
|
|
<%= image_tag avatar_url, class: "absolute inset-0 rounded-full w-full h-full object-cover", loading: lazy ? "lazy" : "eager" %>
|
|
<% end %>
|
|
</div>
|