fix qnote error when avatar not used rounded. (#531)

This commit is contained in:
tsai-jimmy 2019-09-16 09:10:05 +08:00 committed by Ruipeng Zhang
parent 2937dc6360
commit 8804d4612d
1 changed files with 1 additions and 1 deletions

View File

@ -16,7 +16,7 @@
<div> <div>
<% const is_rounded = get_config_from_obj(widget, 'avatar_rounded', false); %> <% const is_rounded = get_config_from_obj(widget, 'avatar_rounded', false); %>
<figure class="image is-128x128 has-mb-6"> <figure class="image is-128x128 has-mb-6">
<img class=<%= is_rounded ? 'is-rounded' : '' %> src="<%= avatar() %>" alt="<%= get_config_from_obj(widget, 'author') %>"> <img class="<%= is_rounded ? 'is-rounded' : '' %>" src="<%= avatar() %>" alt="<%= get_config_from_obj(widget, 'author') %>">
</figure> </figure>
<% if (get_config_from_obj(widget, 'author')) { %> <% if (get_config_from_obj(widget, 'author')) { %>
<p class="is-size-4 is-block"> <p class="is-size-4 is-block">