From: Andy Allan Date: Wed, 27 Mar 2019 16:16:49 +0000 (+0100) Subject: Set image dimensions in order to avoid a reflow after the page is drawn by the browser X-Git-Tag: live~2626^2 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/22c1be4db7054baf155a6c1c24f31063b5b729df?hp=a5f412468107055f38b3f537b4bb8a01aec1db34 Set image dimensions in order to avoid a reflow after the page is drawn by the browser --- diff --git a/app/views/notes/mine.html.erb b/app/views/notes/mine.html.erb index 2966b81bb..2751e1559 100644 --- a/app/views/notes/mine.html.erb +++ b/app/views/notes/mine.html.erb @@ -18,9 +18,9 @@ class="creator"<% end %>> <% 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 %> <%= link_to note.id, browse_note_path(note) %>