From 326a7a47e7273742e60ef43d57497abbf5223c6a Mon Sep 17 00:00:00 2001 From: Krzysztof Kotlarek Date: Tue, 28 Mar 2023 10:13:27 +1100 Subject: [PATCH] FIX: global sidebar section icon not moving on scroll (#20851) Global section icon is using absolute position. To make it move on scroll, the parent element has to be relative. https://meta.discourse.org/t/globe-icon-at-sidebar-behaves-badly/259382 --- .../stylesheets/common/base/sidebar-custom-section.scss | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/assets/stylesheets/common/base/sidebar-custom-section.scss b/app/assets/stylesheets/common/base/sidebar-custom-section.scss index 69bd20934c6..204f0695763 100644 --- a/app/assets/stylesheets/common/base/sidebar-custom-section.scss +++ b/app/assets/stylesheets/common/base/sidebar-custom-section.scss @@ -2,9 +2,12 @@ .sidebar-section-wrapper { padding-bottom: 0; } + .sidebar-section-header { + position: relative; + } .d-icon-globe { position: absolute; - left: 0.5em; + left: -0.75em; height: 0.75em; width: 0.75em; margin-top: 0.15em;