diff --git a/public/app/plugins/panel/alertlist/editor.html b/public/app/plugins/panel/alertlist/editor.html index b75a7e453aa..b2038df34b8 100644 --- a/public/app/plugins/panel/alertlist/editor.html +++ b/public/app/plugins/panel/alertlist/editor.html @@ -20,12 +20,4 @@ - -
- -
- -
- -
diff --git a/public/app/plugins/panel/alertlist/module.html b/public/app/plugins/panel/alertlist/module.html index 13a32f1eb1e..2940e2ae33e 100644 --- a/public/app/plugins/panel/alertlist/module.html +++ b/public/app/plugins/panel/alertlist/module.html @@ -1,4 +1,4 @@ -
+
  1. diff --git a/public/app/plugins/panel/alertlist/module.ts b/public/app/plugins/panel/alertlist/module.ts index 96d7ad18e7c..543c5f04833 100644 --- a/public/app/plugins/panel/alertlist/module.ts +++ b/public/app/plugins/panel/alertlist/module.ts @@ -17,6 +17,7 @@ class AlertListPanel extends PanelCtrl { {text: 'Recent state changes', value: 'changes'} ]; + contentHeight: string; stateFilter: any = {}; currentAlerts: any = []; alertHistory: any = []; @@ -27,6 +28,7 @@ class AlertListPanel extends PanelCtrl { stateFilter: [] }; + /** @ngInject */ constructor($scope, $injector, private $location, private backendSrv, private timeSrv, private templateSrv) { super($scope, $injector); @@ -55,6 +57,7 @@ class AlertListPanel extends PanelCtrl { } onRender() { + this.contentHeight = "max-height: " + this.height + "px;"; if (this.panel.show === 'current') { this.getCurrentAlertState(); } diff --git a/public/sass/_grafana.scss b/public/sass/_grafana.scss index 936ce0af4d6..60f0797dda4 100644 --- a/public/sass/_grafana.scss +++ b/public/sass/_grafana.scss @@ -41,6 +41,7 @@ @import "components/tags"; @import "components/panel_graph"; @import "components/submenu"; +@import "components/panel_alertlist"; @import "components/panel_dashlist"; @import "components/panel_pluginlist"; @import "components/panel_singlestat"; diff --git a/public/sass/components/_panel_alertlist.scss b/public/sass/components/_panel_alertlist.scss new file mode 100644 index 00000000000..41f63b61bd4 --- /dev/null +++ b/public/sass/components/_panel_alertlist.scss @@ -0,0 +1,3 @@ +.panel-alert-list { + overflow-y: scroll; +}