diff --git a/app/assets/stylesheets/pages/pipelines.scss b/app/assets/stylesheets/pages/pipelines.scss
index 05f592796373ff4e2f8abadb881dea522d7b9622..7843355f0ab1b2051df5e0462a80f910e7da0656 100644
--- a/app/assets/stylesheets/pages/pipelines.scss
+++ b/app/assets/stylesheets/pages/pipelines.scss
@@ -420,8 +420,11 @@
         left: auto;
         right: -197px;
         top: -9px;
-        max-height: 245px;
-        overflow-y: scroll;
+
+        ul {
+          max-height: 245px;
+          overflow: auto;
+        }
 
         a {
           color: $gl-text-color;
diff --git a/app/views/projects/commit/_pipeline_status_group.html.haml b/app/views/projects/commit/_pipeline_status_group.html.haml
index 6ada719e0068ed9092a3e1cab41ce042fdbf6d07..5d0d5ba026289a15852d70cc6cb40b9009202bcc 100644
--- a/app/views/projects/commit/_pipeline_status_group.html.haml
+++ b/app/views/projects/commit/_pipeline_status_group.html.haml
@@ -5,8 +5,9 @@
   %span.ci-status-text
     = name
   %span.badge= subject.size
-%ul.dropdown-menu.grouped-pipeline-dropdown
-  %li.arrow
-  - subject.each do |status|
-    %li
-      = render "projects/#{status.to_partial_path}_pipeline", subject: status
+.dropdown-menu.grouped-pipeline-dropdown
+  .arrow
+  %ul
+    - subject.each do |status|
+      %li
+        = render "projects/#{status.to_partial_path}_pipeline", subject: status