From: Anton Khorev Date: Mon, 13 Nov 2023 06:46:11 +0000 (+0300) Subject: Remove relative position from sidebar child divs other than banners X-Git-Tag: live~970^2 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/77be0e3225d453aca2c785669d70d57de5a000d2?ds=sidebyside;hp=22e079a3c3c98fe3cf3b727732af0b2c92ff075f Remove relative position from sidebar child divs other than banners --- diff --git a/app/assets/stylesheets/common.scss b/app/assets/stylesheets/common.scss index 023dcdca7..fbc4e2542 100644 --- a/app/assets/stylesheets/common.scss +++ b/app/assets/stylesheets/common.scss @@ -405,10 +405,6 @@ body.small-nav { #sidebar_content { padding: $spacer; } - - > div { - position: relative; - } } .overlay-sidebar #sidebar { diff --git a/app/views/layouts/_banner.html.erb b/app/views/layouts/_banner.html.erb index f6b866ff9..344c5ed71 100644 --- a/app/views/layouts/_banner.html.erb +++ b/app/views/layouts/_banner.html.erb @@ -1,5 +1,5 @@ <% unless (banner = next_banner()).nil? %> - <%= tag.div :id => "banner", :data => { :bs_theme => token_list(:dark => banner[:dark]) } do %> + <%= tag.div :id => "banner", :class => "position-relative", :data => { :bs_theme => token_list(:dark => banner[:dark]) } do %> <%= link_to (image_tag banner[:img], :srcset => banner[:srcset], :alt => banner[:alt], :title => banner[:alt]), banner[:link] %>