ui: optimize friends link avatar display
This commit is contained in:
parent
1f5e78301f
commit
dcdba2ac48
|
@ -6,7 +6,10 @@
|
|||
<div class="content">
|
||||
<div class="avatar radius">
|
||||
<% if (f.avatar) { %>
|
||||
<img class="radius" alt="<%= f.name %>" src="<%= f.avatar %>">
|
||||
<img class="radius"
|
||||
src="<%= f.avatar %>"
|
||||
onerror="this.style.display='none'"
|
||||
>
|
||||
<% } else { %>
|
||||
<i class="fas fa-user-friends"></i>
|
||||
<% } %>
|
||||
|
|
Loading…
Reference in New Issue