Browse Source

fix: css fix, found a better way to fix #10772

Torkel Ödegaard 7 years ago
parent
commit
f54ba20783

+ 1 - 1
public/app/plugins/panel/dashlist/module.html

@@ -4,7 +4,7 @@
       {{group.header}}
     </h6>
     <div class="dashlist-item" ng-repeat="dash in group.list">
-      <a class="dashlist-link dashlist-link-{{dash.type}}" ng-class="{'dashlist-link--no-section-header ':$first && !ctrl.panel.headings}" href="{{dash.url}}">
+      <a class="dashlist-link dashlist-link-{{dash.type}}" href="{{dash.url}}">
         <span class="dashlist-title">
           {{dash.title}}
         </span>

+ 1 - 4
public/sass/components/_panel_dashlist.scss

@@ -5,6 +5,7 @@
 
 .dashlist-section {
   margin-bottom: $spacer;
+  padding-top: 3px;
 }
 
 .dashlist-link {
@@ -21,8 +22,4 @@
   .fa-star {
     color: $orange;
   }
-
-  &--no-section-header {
-    margin-top: 0;
-  }
 }