From 4ba24bdd5dd3537882188f33ea83b48a5d344425 Mon Sep 17 00:00:00 2001 From: Anton Khorev Date: Mon, 13 Nov 2023 10:46:17 +0300 Subject: [PATCH] Remove some custom css for pages with embedded iD --- app/assets/stylesheets/common.scss | 12 ------------ app/views/site/_id.html.erb | 4 ++-- 2 files changed, 2 insertions(+), 14 deletions(-) diff --git a/app/assets/stylesheets/common.scss b/app/assets/stylesheets/common.scss index 023dcdca7..1fdb62067 100644 --- a/app/assets/stylesheets/common.scss +++ b/app/assets/stylesheets/common.scss @@ -852,11 +852,6 @@ tr.turn:hover { bottom: 0; width: 100%; } - - #map { - height: 100%; - overflow: hidden; - } } /* Rules for non-map content pages */ @@ -1102,13 +1097,6 @@ div.secondary-actions { } } -/* Rules for the iD editor */ - -.id-embed { - width: 100%; - height: 100%; -} - /* Rules for the "Welcome" page */ .site-welcome, .site-fixthemap { .sprite { diff --git a/app/views/site/_id.html.erb b/app/views/site/_id.html.erb index c0ea3631b..0ba4200a8 100644 --- a/app/views/site/_id.html.erb +++ b/app/views/site/_id.html.erb @@ -1,10 +1,10 @@ <%= javascript_include_tag "edit/id" %> -
+
<% data = { :configured => Settings.key?(:id_application) } data[:lat] = @lat if @lat data[:lon] = @lon if @lon data[:gpx] = trace_data_url(params[:gpx], :format => :xml) if params[:gpx] data[:url] = id_url(:locale => params[:locale]) %> - <%= tag.iframe "", :frameBorder => 0, :id => "id-embed", :class => "id-embed", :allowfullscreen => "", :data => data %> + <%= tag.iframe "", :frameBorder => 0, :id => "id-embed", :class => "w-100 h-100", :allowfullscreen => "", :data => data %>
-- 2.39.5