style: schemaSetting dropdown style improve (#2432)

This commit is contained in:
katherinehhh 2023-08-13 19:27:21 +08:00 committed by GitHub
parent e573d085d3
commit caad07e11e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -167,6 +167,12 @@ export const SchemaSettings: React.FC<SchemaSettingsProps> & SchemaSettingsNeste
onOpenChange={(open) => {
changeMenu(open);
}}
overlayClassName={css`
.ant-dropdown-menu-item-group-list {
max-height: 300px;
overflow-y: auto;
}
`}
menu={{ items }}
>
{typeof title === 'string' ? <span>{title}</span> : title}