From: mxdanger <32040254+mxdanger@users.noreply.github.com> Date: Thu, 18 Feb 2021 02:27:41 +0000 (-0800) Subject: Add btn-wrapper class X-Git-Tag: live~2257^2~1 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/ea92d66cc0668246f026c5d5394d53180be040c3 Add btn-wrapper class --- diff --git a/app/assets/stylesheets/common.scss b/app/assets/stylesheets/common.scss index c010691c6..4664578cd 100644 --- a/app/assets/stylesheets/common.scss +++ b/app/assets/stylesheets/common.scss @@ -977,6 +977,12 @@ tr.turn:hover { } } +.btn-wrapper { + > .btn { + margin-bottom: $lineheight/4; + } +} + /* Rules for export sidebar */ .export_form { diff --git a/app/views/browse/note.html.erb b/app/views/browse/note.html.erb index 52ce00b7b..6dcd46e76 100644 --- a/app/views/browse/note.html.erb +++ b/app/views/browse/note.html.erb @@ -51,24 +51,24 @@
-
+
<% if current_user.moderator? -%> - " class="btn btn-light mb-2" data-note-id="<%= @note.id %>" data-method="DELETE" data-url="<%= note_url(@note, "json") %>"> + " class="btn btn-light" data-note-id="<%= @note.id %>" data-method="DELETE" data-url="<%= note_url(@note, "json") %>"> <% end -%> - " 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"> + " 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">
<% end -%> <% else %>
-
+
<% if current_user and current_user.moderator? -%> - " class="btn btn-light mb-2" data-note-id="<%= @note.id %>" data-method="DELETE" data-url="<%= note_url(@note, "json") %>"> + " class="btn btn-light" data-note-id="<%= @note.id %>" data-method="DELETE" data-url="<%= note_url(@note, "json") %>"> <% end -%> <% if current_user -%> - " class="btn btn-primary mb-2" data-note-id="<%= @note.id %>" data-method="POST" data-url="<%= reopen_note_url(@note, "json") %>"> + " class="btn btn-primary" data-note-id="<%= @note.id %>" data-method="POST" data-url="<%= reopen_note_url(@note, "json") %>"> <% end -%>