ui: optimize friends link avatar display

This commit is contained in:
XPoet 2021-03-25 11:47:39 +08:00
parent 1f5e78301f
commit dcdba2ac48
1 changed files with 4 additions and 1 deletions

View File

@ -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>
<% } %>