Skip to content
This repository was archived by the owner on Dec 13, 2022. It is now read-only.

Commit 26cd044

Browse files
authored
fix: editModal layout (#8)
1 parent 13d26d4 commit 26cd044

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

src/mui/editModal.tsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,11 @@ const styles = {
3636
position: "absolute",
3737
top: 0, left: 0, right: 0, bottom: 0,
3838
padding: "16px",
39-
overflow: "auto"
39+
} as React.CSSProperties,
40+
editor: {
41+
flex: 1,
42+
overflow: "auto",
43+
wordBreak: "break-all"
4044
} as React.CSSProperties
4145
}
4246

@@ -92,7 +96,7 @@ export class EditModal<T extends RemoteTextNode> extends React.Component<EditMod
9296
{...rest}
9397
>
9498
<Grid container direction="column" wrap="nowrap" component={Paper} style={styles.modalBody}>
95-
<Grid container direction="column" item style={{flex: 1}}>
99+
<Grid container direction="column" item style={styles.editor}>
96100
<MediumEditor
97101
style={{flex: 1}}
98102
ref={this.mediumEditorRef}

0 commit comments

Comments
 (0)