From: Tom Hughes Date: Mon, 27 May 2024 09:48:30 +0000 (+0100) Subject: Merge remote-tracking branch 'upstream/pull/4838' X-Git-Tag: live~994 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/7a5524c854901fb69a3eac513a28c0052a9a3788?hp=aac2829ea8485c229889feb1276b03ff7945de0f Merge remote-tracking branch 'upstream/pull/4838' --- diff --git a/app/assets/javascripts/index/browse.js b/app/assets/javascripts/index/browse.js index 69d625eca..7a761b500 100644 --- a/app/assets/javascripts/index/browse.js +++ b/app/assets/javascripts/index/browse.js @@ -58,7 +58,7 @@ OSM.initializeBrowse = function (map) { .click(cancel))), $("

") .text(I18n.t("browse.start_rjs.feature_warning", { num_features: count, max_features: limit })), - $("") + $("") .val(I18n.t("browse.start_rjs.load_data")) .click(add))); } diff --git a/app/assets/stylesheets/common.scss b/app/assets/stylesheets/common.scss index 3d6ab94bf..7df0cdc52 100644 --- a/app/assets/stylesheets/common.scss +++ b/app/assets/stylesheets/common.scss @@ -487,16 +487,6 @@ body.small-nav { .donate-attr { color: darken($green, 10%) !important; } -/* Rules for the sidebar */ - -#browse_status { - input { - display: block; - margin-left: auto; - margin-right: auto; - } -} - /* Temporary label size override until we remove site-wide font customisation */ form { @@ -578,10 +568,6 @@ tr.turn { .routing_marker { width: 15px; cursor: move; } -.browse_status { - display: none; -} - /* Rules for the history sidebar */ #sidebar .changesets { @@ -635,16 +621,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/controllers/site_controller.rb b/app/controllers/site_controller.rb index 172be5653..8b742a585 100644 --- a/app/controllers/site_controller.rb +++ b/app/controllers/site_controller.rb @@ -18,8 +18,7 @@ class SiteController < ApplicationController content_security_policy(:only => :id) do |policy| policy.connect_src("*") - policy.img_src("*", :blob) - policy.script_src(*policy.script_src, "dev.virtualearth.net", :unsafe_eval) + policy.img_src(*policy.img_src, "*", :blob) policy.style_src(*policy.style_src, :unsafe_inline) end 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 -%>