mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
using percentage to not hide search when smaller screen
This commit is contained in:
parent
5916f76991
commit
638c04e16b
@ -34,7 +34,7 @@ export default class UnitPicker extends PureComponent<Props> {
|
||||
const styles = {
|
||||
...ResetStyles,
|
||||
menu: () => ({
|
||||
maxHeight: '500px',
|
||||
maxHeight: '75%',
|
||||
overflow: 'scroll',
|
||||
}),
|
||||
menuList: () =>
|
||||
@ -54,6 +54,7 @@ export default class UnitPicker extends PureComponent<Props> {
|
||||
className="width-20 gf-form-input--form-dropdown"
|
||||
defaultValue={value}
|
||||
isSearchable={true}
|
||||
menuShouldScrollIntoView={false}
|
||||
options={groupOptions}
|
||||
placeholder="Choose"
|
||||
onChange={onSelected}
|
||||
|
Loading…
Reference in New Issue
Block a user