mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Fixed explore query editor styling issues
This commit is contained in:
@@ -257,18 +257,18 @@ class PromQueryField extends React.PureComponent<PromQueryFieldProps, PromQueryF
|
|||||||
syntaxLoaded={syntaxLoaded}
|
syntaxLoaded={syntaxLoaded}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
{error ? <div className="prom-query-field-info text-error">{error}</div> : null}
|
|
||||||
{hint ? (
|
|
||||||
<div className="prom-query-field-info text-warning">
|
|
||||||
{hint.label}{' '}
|
|
||||||
{hint.fix ? (
|
|
||||||
<a className="text-link muted" onClick={this.onClickHintFix}>
|
|
||||||
{hint.fix.label}
|
|
||||||
</a>
|
|
||||||
) : null}
|
|
||||||
</div>
|
|
||||||
) : null}
|
|
||||||
</div>
|
</div>
|
||||||
|
{error ? <div className="prom-query-field-info text-error">{error}</div> : null}
|
||||||
|
{hint ? (
|
||||||
|
<div className="prom-query-field-info text-warning">
|
||||||
|
{hint.label}{' '}
|
||||||
|
{hint.fix ? (
|
||||||
|
<a className="text-link muted" onClick={this.onClickHintFix}>
|
||||||
|
{hint.fix.label}
|
||||||
|
</a>
|
||||||
|
) : null}
|
||||||
|
</div>
|
||||||
|
) : null}
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ $input-border: 1px solid $input-border-color;
|
|||||||
margin-bottom: $gf-form-margin;
|
margin-bottom: $gf-form-margin;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
align-items: center;
|
align-items: flex-start;
|
||||||
text-align: left;
|
text-align: left;
|
||||||
position: relative;
|
position: relative;
|
||||||
|
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
position: relative;
|
position: relative;
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
padding: $input-padding-y $input-padding-x;
|
padding: $input-padding-y $input-padding-x;
|
||||||
height: $gf-form-input-height;
|
min-height: $gf-form-input-height;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
cursor: text;
|
cursor: text;
|
||||||
line-height: $line-height-base;
|
line-height: $line-height-base;
|
||||||
|
|||||||
Reference in New Issue
Block a user