Skip to content

Commit

Permalink
Merge pull request #369 from dappforce/deploy/embed
Browse files Browse the repository at this point in the history
Minor Improvements
  • Loading branch information
olehmell authored Mar 18, 2024
2 parents c45d8a8 + 45071de commit ff8173d
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
5 changes: 4 additions & 1 deletion src/components/posts/editor/FullEditor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,10 @@ const FullEditor = ({
<Row className={styles.EditorContainer} gutter={[16, 16]} justify='center'>
<Col
style={{ minWidth: 0 }}
className={clsx('d-flex align-items-stretch flex-column', styles.EditorBodyContent)}
className={clsx(
'd-flex align-items-stretch flex-column',
styles.EditorBodyContentContainer,
)}
>
<Card className={clsx(styles.EditorBodyContent, 'mb-3')}>
<Form.Item
Expand Down
4 changes: 2 additions & 2 deletions src/components/posts/editor/ModalEditor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ export const PostEditorModalBody = ({
const [spaceId, setSpaceId] = useState<string>(defaultSpace)

const { loading } = useFetchSpaces({ ids: spaceIds, dataSource: DataSourceTypes.SQUID })
const { saveContent } = useAutoSaveFromForm({ entity: 'post' })
const { savedData, saveContent } = useAutoSaveFromForm({ entity: 'post' })

useEffect(() => {
setSpaceId(defaultSpace)
Expand Down Expand Up @@ -201,7 +201,7 @@ export const PostEditorModalBody = ({
)

return (
<Form form={form} className='my-0' onFieldsChange={() => saveDraft()}>
<Form form={form} className='my-0' initialValues={savedData} onFieldsChange={() => saveDraft()}>
<SpaceSelector />
<Form.Item name={fieldName('body')} className='my-3'>
{/* value and onChange are provided by Form.Item */}
Expand Down
3 changes: 3 additions & 0 deletions src/components/posts/editor/index.module.sass
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@
\:global .ant-tabs-nav
margin: 0

.EditorBodyContentContainer
width: $max_width_content

.AdvancedBody
width: 325px

Expand Down

0 comments on commit ff8173d

Please sign in to comment.