From: mxdanger <32040254+mxdanger@users.noreply.github.com> Date: Tue, 9 Feb 2021 01:32:29 +0000 (-0800) Subject: Fix unexpected spacing on note buttons when overflowed X-Git-Tag: live~2196^2~2 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/ba982e48c478ee67ee2fc5766299e1b57cc3ba11 Fix unexpected spacing on note buttons when overflowed --- diff --git a/app/views/browse/note.html.erb b/app/views/browse/note.html.erb index 1a792e873..52ce00b7b 100644 --- a/app/views/browse/note.html.erb +++ b/app/views/browse/note.html.erb @@ -53,10 +53,10 @@
<% if current_user.moderator? -%> - " class="btn btn-light" data-note-id="<%= @note.id %>" data-method="DELETE" data-url="<%= note_url(@note, "json") %>"> + " class="btn btn-light mb-2" data-note-id="<%= @note.id %>" data-method="DELETE" data-url="<%= note_url(@note, "json") %>"> <% end -%> - " class="btn btn-primary" data-note-id="<%= @note.id %>" data-method="POST" data-url="<%= close_note_url(@note, "json") %>"> - " class="btn btn-primary" data-note-id="<%= @note.id %>" data-method="POST" data-url="<%= comment_note_url(@note, "json") %>" disabled="1"> + " class="btn btn-primary mb-2" data-note-id="<%= @note.id %>" data-method="POST" data-url="<%= close_note_url(@note, "json") %>"> + " class="btn btn-primary mb-2" data-note-id="<%= @note.id %>" data-method="POST" data-url="<%= comment_note_url(@note, "json") %>" disabled="1">
<% end -%> @@ -65,10 +65,10 @@
<% if current_user and current_user.moderator? -%> - " class="btn btn-light" data-note-id="<%= @note.id %>" data-method="DELETE" data-url="<%= note_url(@note, "json") %>"> + " class="btn btn-light mb-2" data-note-id="<%= @note.id %>" data-method="DELETE" data-url="<%= note_url(@note, "json") %>"> <% end -%> <% if current_user -%> - " class="btn btn-primary" data-note-id="<%= @note.id %>" data-method="POST" data-url="<%= reopen_note_url(@note, "json") %>"> + " class="btn btn-primary mb-2" data-note-id="<%= @note.id %>" data-method="POST" data-url="<%= reopen_note_url(@note, "json") %>"> <% end -%>