mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Fix search field styles
This commit is contained in:
parent
9293ff06cd
commit
117adbbe5d
@ -16,6 +16,11 @@ import { parseQuery, formatQuery } from '../query_utils';
|
|||||||
|
|
||||||
const PRISM_SYNTAX = 'promql';
|
const PRISM_SYNTAX = 'promql';
|
||||||
|
|
||||||
|
const SEARCH_FIELD_STYLES = {
|
||||||
|
width: '66%',
|
||||||
|
marginLeft: 3,
|
||||||
|
};
|
||||||
|
|
||||||
export function willApplySuggestion(suggestion: string, { typeaheadContext, typeaheadText }: QueryFieldState): string {
|
export function willApplySuggestion(suggestion: string, { typeaheadContext, typeaheadText }: QueryFieldState): string {
|
||||||
// Modify suggestion based on context
|
// Modify suggestion based on context
|
||||||
switch (typeaheadContext) {
|
switch (typeaheadContext) {
|
||||||
@ -256,7 +261,7 @@ class LokiQueryField extends React.PureComponent<LokiQueryFieldProps, LokiQueryF
|
|||||||
</div>
|
</div>
|
||||||
) : null}
|
) : null}
|
||||||
</div>
|
</div>
|
||||||
<div className="prom-query-field-wrapper">
|
<div className="prom-query-field-wrapper" style={SEARCH_FIELD_STYLES}>
|
||||||
<QueryField
|
<QueryField
|
||||||
additionalPlugins={this.pluginsSearch}
|
additionalPlugins={this.pluginsSearch}
|
||||||
disabled={searchDisabled}
|
disabled={searchDisabled}
|
||||||
|
Loading…
Reference in New Issue
Block a user