mirror of
https://github.com/grafana/grafana.git
synced 2025-08-01 01:11:49 +08:00

* RolePicker: Use portal for menu * Remove logging * Fix submenu styles * Fix ROLE_PICKER_MAX_MENU_WIDTH calculation * Fix first menu open glitch * Fix menu closing on ckick * Fix menu position
12 lines
419 B
TypeScript
12 lines
419 B
TypeScript
export const ROLE_PICKER_WIDTH = 360;
|
|
|
|
export const MENU_MAX_HEIGHT = 300; // max height for the picker's dropdown menu
|
|
|
|
export const ROLE_PICKER_MENU_MIN_WIDTH = 320;
|
|
export const ROLE_PICKER_MENU_MAX_WIDTH = 360;
|
|
|
|
export const ROLE_PICKER_SUBMENU_MIN_WIDTH = 320;
|
|
export const ROLE_PICKER_SUBMENU_MAX_WIDTH = 360;
|
|
|
|
export const ROLE_PICKER_MAX_MENU_WIDTH = ROLE_PICKER_MENU_MAX_WIDTH + ROLE_PICKER_SUBMENU_MAX_WIDTH;
|