From: Anton Khorev Date: Mon, 8 Jul 2024 16:32:51 +0000 (+0300) Subject: Always set z-index of embedded maps X-Git-Tag: live~396^2 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/e415ba764d49f352bbeae2aba5b3f47a23c475d5 Always set z-index of embedded maps --- diff --git a/app/views/dashboards/show.html.erb b/app/views/dashboards/show.html.erb index d3e6dbcb3..a65597fef 100644 --- a/app/views/dashboards/show.html.erb +++ b/app/views/dashboards/show.html.erb @@ -19,7 +19,7 @@ :icon => image_path("marker-red.png"), :description => render(:partial => "popup", :object => current_user, :locals => { :type => "your location" }) } %> - <%= tag.div "", :id => "map", :class => "content_map border border-secondary-subtle rounded", :data => { :user => user_data } %> + <%= tag.div "", :id => "map", :class => "content_map border border-secondary-subtle rounded z-0", :data => { :user => user_data } %> <% end %> <% friends = @user.friends %> diff --git a/app/views/diary_entries/_form.html.erb b/app/views/diary_entries/_form.html.erb index 291e8e33b..a449b0d39 100644 --- a/app/views/diary_entries/_form.html.erb +++ b/app/views/diary_entries/_form.html.erb @@ -5,7 +5,7 @@
<%= t ".location" -%> - <%= tag.div "", :id => "map", :class => "border border-secondary-subtle rounded mb-3", :data => { :lat => @lat, :lon => @lon, :zoom => @zoom } %> + <%= tag.div "", :id => "map", :class => "border border-secondary-subtle rounded mb-3 z-0", :data => { :lat => @lat, :lon => @lon, :zoom => @zoom } %>
<%= f.text_field :latitude, :wrapper_class => "col-sm-4 d-flex flex-column", :class => "mt-auto", :id => "latitude" %> diff --git a/app/views/profiles/edit.html.erb b/app/views/profiles/edit.html.erb index fea15eb2f..ac76b4d2d 100644 --- a/app/views/profiles/edit.html.erb +++ b/app/views/profiles/edit.html.erb @@ -56,7 +56,7 @@ checked <% end %> id="updatehome" />
- <%= tag.div "", :id => "map", :class => "content_map set_location border border-secondary-subtle rounded" %> + <%= tag.div "", :id => "map", :class => "content_map set_location border border-secondary-subtle rounded z-0" %>
<%= f.primary t(".save") %>