From e415ba764d49f352bbeae2aba5b3f47a23c475d5 Mon Sep 17 00:00:00 2001 From: Anton Khorev Date: Mon, 8 Jul 2024 19:32:51 +0300 Subject: [PATCH] Always set z-index of embedded maps --- app/views/dashboards/show.html.erb | 2 +- app/views/diary_entries/_form.html.erb | 2 +- app/views/profiles/edit.html.erb | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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") %> -- 2.39.5