style: linkage rule style improve (#1625)

This commit is contained in:
katherinehhh 2023-03-31 14:15:32 +08:00 committed by GitHub
parent db511a33fa
commit b015fb769a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 16 additions and 3 deletions

View File

@ -30,11 +30,24 @@ export const FormFieldLinkageRuleAction = observer((props: any) => {
} = useValues(options);
return (
<LinkageLogicContext.Provider value={uid()}>
<div style={{ marginBottom: 8 }}>
<div
style={{ marginBottom: 8 }}
className={css`
.ant-space {
display: inline-block;
}
`}
>
<Space
className={css`
.ant-space {
display: inline-block;
}
.ant-space-item {
max-width: 95%;
display: inline-block;
margin: 2px;
vertical-align: top;
}
`}
>

View File

@ -30,7 +30,7 @@ export const ValueDynamicComponent = (props) => {
<Option value="empty">{t('Empty')}</Option>
</Select>
{mode === 'constant' ? (
<div style={{ minWidth: 150, maxWidth: 430 }}>
<div style={{ minWidth: 150, maxWidth: 430, marginLeft: 5 }}>
{React.createElement(DynamicComponent, {
value: fieldValue?.value || fieldValue,
schema,

View File

@ -950,7 +950,7 @@ SchemaSettings.LinkageRules = (props) => {
<SchemaSettings.ModalItem
title={t('Linkage rules')}
components={{ ArrayCollapse, FormLayout }}
width={750}
width={770}
schema={
{
type: 'object',