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
This commit is contained in:
Peter Davids
2020-06-25 04:52:18 -04:00
committed by GitHub
parent 935d6b0ce1
commit 5ab38e9409
2 changed files with 2 additions and 0 deletions

View File

@@ -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}

View File

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