fix(plugin-workflow): fix searchable select min-width (#524)

This commit is contained in:
Junyi 2022-06-22 11:13:00 +08:00 committed by GitHub
parent 929dd9b22e
commit 19987c5846
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -9,6 +9,7 @@ import { useFlowContext } from '../WorkflowCanvas';
import { BaseTypeSet } from '../calculators'; import { BaseTypeSet } from '../calculators';
import { collection, filter } from '../schemas/collection'; import { collection, filter } from '../schemas/collection';
import { useTranslation } from 'react-i18next'; import { useTranslation } from 'react-i18next';
import { css } from '@emotion/css';
const FieldsSelect = observer((props) => { const FieldsSelect = observer((props) => {
const compile = useCompile(); const compile = useCompile();
@ -19,6 +20,9 @@ const FieldsSelect = observer((props) => {
return ( return (
<Select <Select
{...props} {...props}
className={css`
min-width: 6em;
`}
> >
{fields {fields
.filter(field => ( .filter(field => (