From e2ee7f06eb6ab3c3395f6c1fa2821d2dcec3ec83 Mon Sep 17 00:00:00 2001 From: Ieva Date: Mon, 29 Jul 2024 11:17:55 +0100 Subject: [PATCH] RBAC: Prevent role picker from disappearing when many roles are selected (#91065) make the container of selected roles scrollable --- public/app/core/components/RolePicker/RolePickerInput.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/public/app/core/components/RolePicker/RolePickerInput.tsx b/public/app/core/components/RolePicker/RolePickerInput.tsx index 6bcf7b2e8b3..8e2e3fa6a02 100644 --- a/public/app/core/components/RolePicker/RolePickerInput.tsx +++ b/public/app/core/components/RolePicker/RolePickerInput.tsx @@ -153,6 +153,10 @@ const getRolePickerInputStyles = ( minWidth: width || ROLE_PICKER_WIDTH + 'px', width: width, minHeight: '32px', + maxHeight: '200px', + overflow: 'scroll', + overflowX: 'hidden', + overflowY: 'auto', height: 'auto', flexDirection: 'row', paddingRight: theme.spacing(1),