Set image dimensions in order to avoid a reflow after the page is drawn by the browser

This commit is contained in:
Andy Allan 2019-03-27 17:16:49 +01:00
parent a5f4124681
commit 22c1be4db7

View file

@ -18,9 +18,9 @@
<tr<% if note.author == @user %> class="creator"<% end %>>
<td>
<% if note.closed? %>
<%= image_tag("closed_note_marker.png", :alt => "closed") %>
<%= image_tag("closed_note_marker.png", :alt => "closed", :size => "25x40") %>
<% else %>
<%= image_tag("open_note_marker.png", :alt => "open") %>
<%= image_tag("open_note_marker.png", :alt => "open", :size => "25x40") %>
<% end %>
</td>
<td><%= link_to note.id, browse_note_path(note) %></td>