Просмотр исходного кода

changed class name for no-alerts

Patrick O'Carroll 8 лет назад
Родитель
Сommit
a433698ddf
2 измененных файлов с 8 добавлено и 8 удалено
  1. 1 1
      public/app/plugins/panel/alertlist/module.html
  2. 7 7
      public/sass/pages/_alerting.scss

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

@@ -1,7 +1,7 @@
 <div class="panel-alert-list" style="{{ctrl.contentHeight}}">
 <div class="panel-alert-list" style="{{ctrl.contentHeight}}">
   <section class="card-section card-list-layout-list" ng-if="ctrl.panel.show === 'current'">
   <section class="card-section card-list-layout-list" ng-if="ctrl.panel.show === 'current'">
     <ol class="card-list">
     <ol class="card-list">
-      <div class="no-alert" ng-style="{'height': + ctrl.panelHeight + 'px'}" ng-show="!ctrl.currentAlerts.length">
+      <div class="alert-list-no-alerts" ng-style="{'height': + ctrl.panelHeight + 'px'}" ng-show="!ctrl.currentAlerts.length">
         <p class="alert-list-title">
         <p class="alert-list-title">
           No alerts in selected interval
           No alerts in selected interval
         </p>
         </p>

+ 7 - 7
public/sass/pages/_alerting.scss

@@ -91,6 +91,13 @@
   align-items: flex-end;
   align-items: flex-end;
 }
 }
 
 
+.alert-list-no-alerts {
+  display: flex;
+  align-items: center;
+  justify-content: center;
+  width: 100%;
+}
+
 .panel-has-alert {
 .panel-has-alert {
   .panel-alert-icon:before {
   .panel-alert-icon:before {
     content: "\e611";
     content: "\e611";
@@ -132,13 +139,6 @@
   }
   }
 }
 }
 
 
-.no-alert {
-  display: flex;
-  align-items: center;
-  justify-content: center;
-  width: 100%;
-}
-
 @keyframes alerting-panel {
 @keyframes alerting-panel {
   100% {
   100% {
     opacity: 1;
     opacity: 1;