diff --git a/public/app/features/explore/QueryRow.tsx b/public/app/features/explore/QueryRow.tsx index 3bc2b556a63..682bb22d348 100644 --- a/public/app/features/explore/QueryRow.tsx +++ b/public/app/features/explore/QueryRow.tsx @@ -131,16 +131,22 @@ export class QueryRow extends PureComponent { /> )} -
- - - +
+
+ +
+
+ +
+
+ +
); diff --git a/public/app/plugins/datasource/loki/components/LokiQueryField.tsx b/public/app/plugins/datasource/loki/components/LokiQueryField.tsx index a1871920d56..a2d7b3d0b05 100644 --- a/public/app/plugins/datasource/loki/components/LokiQueryField.tsx +++ b/public/app/plugins/datasource/loki/components/LokiQueryField.tsx @@ -226,26 +226,30 @@ class LokiQueryField extends React.PureComponent -
- - - + <> +
+
+ + + +
+
+ +
-
- +
{error ?
{error}
: null} {hint ? (
@@ -258,7 +262,7 @@ class LokiQueryField extends React.PureComponent ) : null}
-
+ ); } } diff --git a/public/app/plugins/datasource/prometheus/components/PromQueryField.tsx b/public/app/plugins/datasource/prometheus/components/PromQueryField.tsx index edb477ba8a7..9d68a093cc3 100644 --- a/public/app/plugins/datasource/prometheus/components/PromQueryField.tsx +++ b/public/app/plugins/datasource/prometheus/components/PromQueryField.tsx @@ -248,39 +248,41 @@ class PromQueryField extends React.PureComponent -
- - - + <> +
+
+ + + +
+
+ +
-
- - {error ?
{error}
: null} - {hint ? ( -
- {hint.label}{' '} - {hint.fix ? ( - - {hint.fix.label} - - ) : null} -
- ) : null} -
-
+ {error ?
{error}
: null} + {hint ? ( +
+ {hint.label}{' '} + {hint.fix ? ( + + {hint.fix.label} + + ) : null} +
+ ) : null} + ); } } diff --git a/public/sass/components/_gf-form.scss b/public/sass/components/_gf-form.scss index bb753a1f8e6..3c598de8852 100644 --- a/public/sass/components/_gf-form.scss +++ b/public/sass/components/_gf-form.scss @@ -5,7 +5,7 @@ $input-border: 1px solid $input-border-color; margin-bottom: $gf-form-margin; display: flex; flex-direction: row; - align-items: center; + align-items: flex-start; text-align: left; position: relative; @@ -129,6 +129,11 @@ $input-border: 1px solid $input-border-color; &:hover { background: $list-item-hover-bg; + color: $link-color; + } + + .fa-caret-down { + padding-left: 4px; } } @@ -137,6 +142,7 @@ $input-border: 1px solid $input-border-color; } } + .gf-form-label + .gf-form-label { margin-right: $gf-form-margin; } diff --git a/public/sass/components/_slate_editor.scss b/public/sass/components/_slate_editor.scss index 200f102d69a..7608f071e78 100644 --- a/public/sass/components/_slate_editor.scss +++ b/public/sass/components/_slate_editor.scss @@ -8,7 +8,8 @@ .slate-query-field__wrapper { position: relative; display: inline-block; - padding: 6px 7px 4px; + padding: $input-padding-y $input-padding-x; + min-height: $gf-form-input-height; width: 100%; cursor: text; line-height: $line-height-base; diff --git a/public/sass/pages/_explore.scss b/public/sass/pages/_explore.scss index dce944dc7b2..151130a69e2 100644 --- a/public/sass/pages/_explore.scss +++ b/public/sass/pages/_explore.scss @@ -322,6 +322,7 @@ .query-row { display: flex; position: relative; + align-items: flex-start; & + & { margin-top: 0.5rem; @@ -335,17 +336,17 @@ .query-row-status { position: absolute; top: 0; - right: 90px; + right: 105px; z-index: 1015; display: flex; flex-direction: column; justify-content: center; - height: 34px; + height: $input-height; } .query-row-field { margin-right: 3px; - width: 100%; + flex-grow: 1; } .query-transactions { @@ -382,14 +383,6 @@ // Prometheus-specifics, to be extracted to datasource soon .explore { - .prom-query-field { - display: flex; - } - - .prom-query-field-wrapper { - width: 100%; - } - .prom-query-field-info { margin: 0.25em 0.5em 0.5em; display: flex;