diff --git a/public/app/features/alerting/partials/alert_tab.html b/public/app/features/alerting/partials/alert_tab.html index 2e7956d4a6e..a17e58ea83d 100644 --- a/public/app/features/alerting/partials/alert_tab.html +++ b/public/app/features/alerting/partials/alert_tab.html @@ -12,7 +12,7 @@
  • State history
  • -
  • +
  • Delete
  • @@ -41,10 +41,10 @@ WHEN -
    +
    - OF + OF
    @@ -53,8 +53,8 @@
    - - + +
    -
    - If no data or all values are null - SET STATE TO + If no data or all values are null + SET STATE TO
    @@ -91,8 +90,8 @@
    - If execution error or timeout - SET STATE TO + If execution error or timeout + SET STATE TO
    @@ -135,35 +134,31 @@
    -
    +
    State history (last 50 state changes)
    -
    -
    - No state changes recorded -
    +
    +
    + No state changes recorded +
    1. -
      -
      -
      -
      -
      -
      -
      -
      - - - {{ah.stateModel.text}} - {{ah.time}} -
      -
      - {{ah.info}} -
      +
      +
      +
      +
      +
      + {{ah.stateModel.text}} + {{ah.info}} +
      +
      +
    2. diff --git a/public/app/plugins/panel/alertlist/module.html b/public/app/plugins/panel/alertlist/module.html index 2c0cb00d2ef..42749bbbecc 100644 --- a/public/app/plugins/panel/alertlist/module.html +++ b/public/app/plugins/panel/alertlist/module.html @@ -2,24 +2,22 @@
      1. -
        -
        -
        - -
        - +
        +
        +
        - {{alert.stateModel.text}} - for {{alert.newStateDateAgo}}
        -
        - {{alert.executionError}} -
        -
        +
        +

        + + {{alert.name}} + +

        +

        + {{alert.stateModel.text}} + for {{alert.newStateDateAgo}} +

        +
      2. @@ -27,23 +25,25 @@
      -
        +
        1. -
          -
          -
          {{al.time}}
          -
          -
          -
          -
          {{al.title}}
          -
          - - - {{al.stateModel.text}} - {{al.info}} +
          +
          +
          + +
          +
          +

          {{al.title}}

          +
          + {{al.stateModel.text}} + {{al.info}}
          +
        diff --git a/public/sass/pages/_alerting.scss b/public/sass/pages/_alerting.scss index 2829849bcb8..6db3470f3ea 100644 --- a/public/sass/pages/_alerting.scss +++ b/public/sass/pages/_alerting.scss @@ -30,15 +30,67 @@ // Alert List -.alert-list-item-state { +.alert-list { + display: flex; + flex-direction: row; + justify-content: space-between; +} + +.alert-list-icon { font-weight: bold; + display: flex; + justify-content: center; + align-items: center; .icon-gf, .fa { - font-size: 120%; + font-size: 200%; position: relative; top: 2px; } } +.alert-list-body { + display: flex; +} + +.alert-list-main { + padding: 0 2rem; + display: flex; + flex-direction: column; + justify-content: center; +} + +.alert-list-title { + font-size: $font-size-base; + margin: 0; + font-weight: 600; +} + +.alert-list-state { + font-weight: bold; +} + +.alert-list-text { + font-size: $font-size-sm; + margin: 0; + line-height: 1.5rem; + color: $text-color-weak; +} + +.alert-list-info { + color: $text-color; +} + +.alert-list-info-left { + padding-left: 2rem; +} + +.alert-list-footer { + display: flex; + justify-content: space-between; + flex-direction: column; + align-items: flex-end; +} + .panel-has-alert { .panel-alert-icon:before { content: "\e611";