Commit 2a4b10a5 by Torkel Ödegaard

minor fix

parent 740e1a05
...@@ -50,7 +50,6 @@ export class LokiQueryEditor extends PureComponent<Props> { ...@@ -50,7 +50,6 @@ export class LokiQueryEditor extends PureComponent<Props> {
const formatOptions: SelectOptionItem[] = [ const formatOptions: SelectOptionItem[] = [
{ label: 'Time Series', value: 'time_series' }, { label: 'Time Series', value: 'time_series' },
{ label: 'Table', value: 'table' }, { label: 'Table', value: 'table' },
{ label: 'Logs', value: 'logs' },
]; ];
query.resultFormat = query.resultFormat || 'time_series'; query.resultFormat = query.resultFormat || 'time_series';
...@@ -64,10 +63,15 @@ export class LokiQueryEditor extends PureComponent<Props> { ...@@ -64,10 +63,15 @@ export class LokiQueryEditor extends PureComponent<Props> {
onQueryChange={this.onFieldChange} onQueryChange={this.onFieldChange}
onPressEnter={this.onRunQuery} onPressEnter={this.onRunQuery}
/> />
<div className="gf-form-inline">
<div className="gf-form"> <div className="gf-form">
<div className="gf-form-label">Format as</div> <div className="gf-form-label">Format as</div>
<Select isSearchable={false} options={formatOptions} onChange={this.onFormatChanged} value={currentFormat} /> <Select isSearchable={false} options={formatOptions} onChange={this.onFormatChanged} value={currentFormat} />
</div> </div>
<div className="gf-form gf-form--grow">
<div className="gf-form-label gf-form-label--grow" />
</div>
</div>
</div> </div>
); );
} }
......
...@@ -19,6 +19,7 @@ ...@@ -19,6 +19,7 @@
border: $panel-border; border: $panel-border;
border-radius: $border-radius; border-radius: $border-radius;
transition: all 0.3s; transition: all 0.3s;
line-height: $input-line-height;
} }
.slate-query-field__wrapper--disabled { .slate-query-field__wrapper--disabled {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment