diff --git a/app/assets/stylesheets/page_bundles/tree.scss b/app/assets/stylesheets/page_bundles/tree.scss
index d642afb4ffd33d71f78a98bb7c7489f3c052486c..ea33f20bceebe56178a517e6dca29bb72a38d4cd 100644
--- a/app/assets/stylesheets/page_bundles/tree.scss
+++ b/app/assets/stylesheets/page_bundles/tree.scss
@@ -89,8 +89,8 @@
   table.tree-table {
     @apply dark:gl-bg-neutral-900 gl-mb-0;
 
-    thead tr th {
-      @apply gl-border-t-0;
+    thead tr th[scope="col"] {
+      @apply gl-bg-subtle dark:gl-bg-neutral-800 gl-border-t-0;
     }
 
     tbody tr {
@@ -101,10 +101,6 @@
         line-height: 21px;
       }
 
-      th[scope="col"] {
-        @apply gl-bg-subtle dark:gl-bg-neutral-800 gl-border-0;
-      }
-
       td, th {
         @apply gl-border-section;
       }
@@ -133,20 +129,20 @@
           td, th {
             @apply gl-border-b-0;
             box-shadow: inset 0 -1px 0 0 var(--gl-action-selected-border-color-default);
-  
+
             &:first-child {
               box-shadow: inset 1px 0 0 0 var(--gl-action-selected-border-color-default),
                 inset 0 -1px 0 0 var(--gl-action-selected-border-color-default);
               border-bottom-left-radius: calc(#{$gl-border-radius-base} - 1px);
             }
-  
+
             &:last-child {
               box-shadow: inset -1px 0 0 0 var(--gl-action-selected-border-color-default),
                 inset 0 -1px 0 0 var(--gl-action-selected-border-color-default);
               border-bottom-right-radius: calc(#{$gl-border-radius-base} - 1px);
             }
           }
-        } 
+        }
       }
 
       &.selected {