From d6f9ff34ce828a18969415d3c8357f6e98e5c2d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torkel=20=C3=96degaard?= Date: Mon, 12 Jan 2015 15:37:22 +0100 Subject: [PATCH] More work on new grap axis & grid edit tab, #1331 --- .../features/annotations/partials/editor.html | 4 +- .../graphite/partials/query.editor.html | 98 ++++++++-------- src/app/panels/graph/axisEditor.html | 111 ++++++++++++------ src/css/less/grafana.less | 7 +- 4 files changed, 130 insertions(+), 90 deletions(-) diff --git a/src/app/features/annotations/partials/editor.html b/src/app/features/annotations/partials/editor.html index b6118f15d63..14208dc2ab2 100644 --- a/src/app/features/annotations/partials/editor.html +++ b/src/app/features/annotations/partials/editor.html @@ -53,7 +53,7 @@ -
+
@@ -62,7 +62,7 @@
-
+
diff --git a/src/app/features/graphite/partials/query.editor.html b/src/app/features/graphite/partials/query.editor.html index 8857ab83983..9487106ecdf 100755 --- a/src/app/features/graphite/partials/query.editor.html +++ b/src/app/features/graphite/partials/query.editor.html @@ -7,66 +7,68 @@ ng-init="init()">
- -
    +
    • {{targetLetters[$index]}} -
    • -
    • - - - -
    • -
    + +
  • + + + +
  • +
- -
+
    -
  • +
  • Left Y
  • @@ -19,7 +19,7 @@    Grid Max
  • -
  • @@ -27,7 +27,7 @@ Min
  • -
  • @@ -35,7 +35,7 @@ Label
  • -
@@ -43,7 +43,7 @@
    -
  • +
  • Right Y
  • @@ -58,7 +58,7 @@    Grid Max
  • -
  • @@ -66,7 +66,7 @@ Min
  • -
  • @@ -74,15 +74,20 @@ Label
  • -
-
-
    -
  • +
+
+ +
+
+
+
    +
  • Show Axis
  • @@ -100,24 +105,17 @@
- -
-
-
- -
-
-
    -
  • +
  • Thresholds
  • Level 1
  • - +
  • @@ -126,56 +124,93 @@ Level 2
  • - +
  • - Line mode + Line mode  + + +
-
-
+
    -
  • +
  • Legend
  • - Show: + Show  + +
  • - Table: + Table  + +
  • - Right side: + Right side  + +
  • - Hide empty: + Hide empty  + + +
  • +
+
+
+
+
+
+
+
+
    +
  • + Legend values
  • - Min: + Min  + +
  • - Max: + Max  + +
  • - Avg: + Avg  + +
  • - Total: -
  • -
  • - Current: + Current  + +
diff --git a/src/css/less/grafana.less b/src/css/less/grafana.less index d5dad2c7920..6038356fafb 100644 --- a/src/css/less/grafana.less +++ b/src/css/less/grafana.less @@ -122,7 +122,6 @@ .grafana-segment-list { list-style: none; margin: 0; - margin-right: 90px; >li { float: left; } @@ -168,6 +167,9 @@ padding: 8px 15px; } + &.last { + border-right: none; + } } .grafana-target-segment-icon { @@ -243,7 +245,7 @@ input[type=text].grafana-target-text-input { border-right: 1px solid @grafanaTargetSegmentBorder; } -input[type=text].grafana-target-segment-input { +[type=text].grafana-target-segment-input, [type=number].grafana-target-segment-input { border: none; border-right: 1px solid @grafanaTargetSegmentBorder; margin: 0px; @@ -347,6 +349,7 @@ select.grafana-target-segment-input { background: inherit; border: none; color: inherit; + padding: 0; } .sp-replacer:hover, .sp-replacer.sp-active {