浏览代码

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

Torkel Ödegaard 7 年之前
父节点
当前提交
f54ba20783
共有 2 个文件被更改,包括 2 次插入5 次删除
  1. 1 1
      public/app/plugins/panel/dashlist/module.html
  2. 1 4
      public/sass/components/_panel_dashlist.scss

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

@@ -4,7 +4,7 @@
       {{group.header}}
       {{group.header}}
     </h6>
     </h6>
     <div class="dashlist-item" ng-repeat="dash in group.list">
     <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">
         <span class="dashlist-title">
           {{dash.title}}
           {{dash.title}}
         </span>
         </span>

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

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