fix: update role selector to use max height for scroll area (#38831)

This commit is contained in:
Wu Tianwei 2026-07-13 10:38:15 +08:00 committed by GitHub
parent 6d8e390c95
commit f4dfac7214
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -159,8 +159,7 @@ const RoleSelector = ({ value, onChange }: RoleSelectorProps) => {
>
<ScrollArea
ref={setContainerElement}
className="h-70"
slotClassNames={{ viewport: 'overscroll-contain' }}
slotClassNames={{ viewport: 'overscroll-contain max-h-70' }}
>
<div className="p-1">
{rolesLoading ? (