Skip to content

Commit

Permalink
set builder to 100% width
Browse files Browse the repository at this point in the history
  • Loading branch information
vdegraaf committed May 6, 2024
1 parent be5c1e4 commit 5520f4e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.builder {
width: 100%;
}
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ import { filterAttributes } from '../../../utils/filterAttributes'
import { Builder } from '../Builder'
import { HiddenComponentsInput } from '../HiddenComponentsInput'

import styles from './CreateEditForm.module.css'

type CreateEditFormProps = {
isEditForm?: boolean
}
Expand Down Expand Up @@ -48,7 +50,9 @@ export const CreateEditForm = ({ isEditForm = false }: CreateEditFormProps) => {
<TextInput source="title" />
<TextInput source="display" defaultValue="form" hidden />
<HiddenComponentsInput value={builderJson} setInitialValue={setInitialValue} />
<Builder data={initialValue} onChange={onChange} />
<div className={styles.builder}>
<Builder data={initialValue} onChange={onChange} />
</div>
</SimpleForm>
)
}

0 comments on commit 5520f4e

Please sign in to comment.