]> source.dussan.org Git - sonarqube.git/commitdiff
NO-JIRA fixed an issue where project filters had unnecessary scrollbar on firefox
authorlukasz-jarocki-sonarsource <lukasz.jarocki@sonarsource.com>
Mon, 2 Oct 2023 13:55:00 +0000 (15:55 +0200)
committersonartech <sonartech@sonarsource.com>
Tue, 3 Oct 2023 20:02:47 +0000 (20:02 +0000)
server/sonar-web/src/main/js/apps/projects/components/AllProjects.tsx
server/sonar-web/src/main/js/apps/projects/styles.css

index 9b89b685860eecc88ec849e2730d67067b124490..7a8df30591e31bb9608ffa42526d5206ccabb070 100644 (file)
@@ -235,7 +235,7 @@ export class AllProjects extends React.PureComponent<Props, State> {
         {({ top }) => (
           <section
             aria-label={translate('filters')}
-            className="sw-overflow-y-auto"
+            className="sw-overflow-y-auto project-filters-list"
             style={{ height: `calc((100vh - ${top}px) - 60px)` }} // 60 for the footer
           >
             <div className="sw-w-[300px] lg:sw-w-[390px]">
index 5fb5f79f850027839317d8cad3c4f88e1ff0e857..17b3c3bc15534000e4124bd2fa118aa1c346e6e6 100644 (file)
   ~ .search-navigator-facet-worse-than-highlight {
   background-color: #a1cde8;
 }
+
+.project-filters-list {
+  /*
+   * On Firefox on Windows, the scrollbar hides the sidebar's content.
+   * Using 'scrollbar-gutter:stable' is a workaround to ensure consistency with other browsers.
+   * @see https://bugzilla.mozilla.org/show_bug.cgi?id=764076
+   */
+  scrollbar-gutter: stable;
+}