diff --git a/web/pgadmin/dashboard/static/scss/_dashboard.scss b/web/pgadmin/dashboard/static/scss/_dashboard.scss
index ddb59b295a..e00a3b4834 100644
--- a/web/pgadmin/dashboard/static/scss/_dashboard.scss
+++ b/web/pgadmin/dashboard/static/scss/_dashboard.scss
@@ -70,32 +70,32 @@
             }
         }
     }
-}
-
-.dashboard-graph-body {
-    padding: 0.25rem 0.5rem;
-    height: 175px;
 
-    & .flotr-labels {
-        color: $color-fg !important;
-    }
-    & .flotr-legend {
-        border: none !important;
+    & .dashboard-graph-body {
         padding: 0.25rem 0.5rem;
-        & .flotr-legend-label {
+        height: 175px;
+
+        & .flotr-labels {
             color: $color-fg !important;
-            padding-left: 0.25rem;
         }
-
-        & .flotr-legend-color-box>div {
+        & .flotr-legend {
             border: none !important;
-            &>div {
+            padding: 0.25rem 0.5rem;
+            & .flotr-legend-label {
+                color: $color-fg !important;
+                padding-left: 0.25rem;
+            }
+
+            & .flotr-legend-color-box>div {
                 border: none !important;
+                &>div {
+                    border: none !important;
+                }
             }
-        }
 
-        & .flotr-legend-bg {
-            border-radius: $border-radius;
+            & .flotr-legend-bg {
+                border-radius: $border-radius;
+            }
         }
     }
 }
