Dashboard: fix promql query editor resolution field's position to prevent overflow (#25566)

* GraphPanel: fix promql query editor resolution field's max height to prevent overflow

* fix test

* move menuPlacement to bottom instead
pull/25827/head
Peter Davids 5 years ago committed by GitHub
parent 935d6b0ce1
commit 5ab38e9409
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      public/app/plugins/datasource/prometheus/components/PromQueryEditor.tsx
  2. 1
      public/app/plugins/datasource/prometheus/components/__snapshots__/PromQueryEditor.test.tsx.snap

@ -155,6 +155,7 @@ export class PromQueryEditor extends PureComponent<Props, State> {
<div className="gf-form-label">Resolution</div>
<Select
isSearchable={false}
menuPlacement="bottom"
options={INTERVAL_FACTOR_OPTIONS}
onChange={this.onIntervalFactorChange}
value={intervalFactorOption}

@ -78,6 +78,7 @@ exports[`Render PromQueryEditor with basic options should render 1`] = `
</div>
<Select
isSearchable={false}
menuPlacement="bottom"
onChange={[Function]}
options={
Array [

Loading…
Cancel
Save