From 77be0e3225d453aca2c785669d70d57de5a000d2 Mon Sep 17 00:00:00 2001 From: Anton Khorev Date: Mon, 13 Nov 2023 09:46:11 +0300 Subject: [PATCH] Remove relative position from sidebar child divs other than banners --- app/assets/stylesheets/common.scss | 4 ---- app/views/layouts/_banner.html.erb | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) 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] %>