diff --git a/public/app/features/panel/partials/query_editor_row.html b/public/app/features/panel/partials/query_editor_row.html index 7fa5bbd113e..75df55a73da 100644 --- a/public/app/features/panel/partials/query_editor_row.html +++ b/public/app/features/panel/partials/query_editor_row.html @@ -1,4 +1,4 @@ -
+
-
+ +
diff --git a/public/app/plugins/datasource/influxdb/partials/query.editor.html b/public/app/plugins/datasource/influxdb/partials/query.editor.html index 01b541cee72..53588f1f51a 100644 --- a/public/app/plugins/datasource/influxdb/partials/query.editor.html +++ b/public/app/plugins/datasource/influxdb/partials/query.editor.html @@ -1,105 +1,89 @@ -
- - - +
+ +
- +
+
+
+ -
- + + +
+ +
+ + +
+ +
+
+ +
+
+ +
+
+ +
+ +
+ + +
+ +
+ +
+ +
+
+ +
+
+ + + + + + +
+ +
+
+ +
+ +
+
+ + +
+
+ +
+
+
+
-
- -
- -
-
-
- - - - - - -
-
-
-
- - - - - - - -
-
- -
-
-
    -
  • - SELECT -
  • -
  • - -
  • - -
-
-
- -
-
    -
  • - GROUP BY -
  • -
  • - -
  • -
  • - -
  • -
-
-
-
- -
-
- - -
-
- -
- -
-
-
- diff --git a/public/app/plugins/datasource/influxdb/partials/query_part.html b/public/app/plugins/datasource/influxdb/partials/query_part.html index 0eb0146ec13..478edfe5c29 100644 --- a/public/app/plugins/datasource/influxdb/partials/query_part.html +++ b/public/app/plugins/datasource/influxdb/partials/query_part.html @@ -2,4 +2,4 @@
-{{part.def.type}}() +{{part.def.type}}() diff --git a/public/sass/_grafana.scss b/public/sass/_grafana.scss index c7b4567bfb5..9da4ed0dfbc 100644 --- a/public/sass/_grafana.scss +++ b/public/sass/_grafana.scss @@ -68,6 +68,7 @@ @import "components/drop"; @import "components/query_editor"; @import "components/tabbed_view"; +@import "components/query_part"; // PAGES @import "pages/login"; diff --git a/public/sass/components/_gf-form.scss b/public/sass/components/_gf-form.scss index 468754f82da..3fae08f6ad8 100644 --- a/public/sass/components/_gf-form.scss +++ b/public/sass/components/_gf-form.scss @@ -49,6 +49,16 @@ $gf-form-margin: 0.25rem; @include border-radius($label-border-radius-sm); } +.gf-form-filler { + margin-right: $gf-form-margin; + margin-bottom: $gf-form-margin; + flex-grow: 1; + background-color: $input-label-bg; + + border: $input-btn-border-width solid transparent; + @include border-radius($label-border-radius-sm); +} + .gf-form-checkbox { flex-shrink: 0; padding: $input-padding-y $input-padding-x; @@ -152,10 +162,6 @@ $gf-form-margin: 0.25rem; flex-grow: 0; } -.query-editor-secondary-row { - margin-left: 5.2rem; -} - .gf-form-switch { margin-right: $gf-form-margin; } @@ -186,3 +192,27 @@ $gf-form-margin: 0.25rem; pointer-events: none; } } + +.gf-form-query { + display: flex; + flex-direction: row; + flex-wrap: nowrap; + align-content: flex-start; + align-items: flex-start; + + .gf-form, + .gf-form-filler { + margin-bottom: 2px; + } + + .gf-form-input, + .gf-form-select-wrapper, + .gf-form-filler, + .gf-form-label { + margin-right: 2px; + } +} + +.gf-form-query-content { + flex-grow: 1; +} diff --git a/public/sass/components/_query_part.scss b/public/sass/components/_query_part.scss new file mode 100644 index 00000000000..a2543e1a75c --- /dev/null +++ b/public/sass/components/_query_part.scss @@ -0,0 +1,16 @@ + +.query-part { + background-color: $input-bg !important; + + &.show-function-controls { + padding-top: 5px; + min-width: 100px; + text-align: center; + } +} + +.query-part-name { +} + +.query-part-parameters { +}