From: Tom Hughes Date: Mon, 27 May 2024 09:46:38 +0000 (+0100) Subject: Merge remote-tracking branch 'upstream/pull/4837' X-Git-Tag: live~995 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/26af28b7cb72f128b3426ab663dd6f042cfd6642?hp=94afd0df1c754aee43e4460ccafd984eb07ee069 Merge remote-tracking branch 'upstream/pull/4837' --- diff --git a/app/assets/stylesheets/common.scss b/app/assets/stylesheets/common.scss index abff59a20..1517195f0 100644 --- a/app/assets/stylesheets/common.scss +++ b/app/assets/stylesheets/common.scss @@ -623,16 +623,6 @@ tr.turn { } } -/* Bootstrap buttons don't have any vertical margin, so - they touch when adjacent buttons wrap onto a new line - e.g. wide form buttons on a narrow sidebar */ - -.btn-wrapper { - > .btn { - margin-bottom: $spacer * 0.25; - } -} - /* Force LTR/RTL alignment for placeholder text */ .form-control::placeholder { diff --git a/app/views/accounts/edit.html.erb b/app/views/accounts/edit.html.erb index dc649cbf4..f15bc195c 100644 --- a/app/views/accounts/edit.html.erb +++ b/app/views/accounts/edit.html.erb @@ -54,11 +54,11 @@ -
-
+
+
<%= f.primary t(".save changes button") %>
-
+
<%= link_to t(".delete_account"), account_deletion_path, :class => "btn btn-outline-danger" %>
diff --git a/app/views/notes/new.html.erb b/app/views/notes/new.html.erb index 6728b32ff..c9b1275b9 100644 --- a/app/views/notes/new.html.erb +++ b/app/views/notes/new.html.erb @@ -15,7 +15,7 @@
-
+
" disabled="1" class="btn btn-primary">
diff --git a/app/views/notes/show.html.erb b/app/views/notes/show.html.erb index b3f124433..a04cbf9d9 100644 --- a/app/views/notes/show.html.erb +++ b/app/views/notes/show.html.erb @@ -51,7 +51,7 @@
-
+
<% if current_user.moderator? -%> <%= submit_tag t(".hide"), :name => "hide", :class => "btn btn-light", :data => { :method => "DELETE", @@ -77,7 +77,7 @@ -
+
<% if @note.status != "hidden" and current_user and current_user.moderator? -%> " class="btn btn-light" data-method="DELETE" data-url="<%= api_note_url(@note, "json") %>"> <% end -%>