Make note editor resizable

This commit is contained in:
c-bata
2022-03-19 03:34:23 +09:00
parent 836e0c741a
commit 90922da662
2 changed files with 10 additions and 9 deletions
+2 -1
View File
@@ -61,10 +61,11 @@ export const Note: FC<{
</Typography>
<TextField
disabled={saving}
minRows={10}
minRows={5}
multiline={true}
placeholder="Take a note (The note is saved to study's system_attrs)"
sx={{ width: "100%", margin: `${theme.spacing(1)} 0` }}
inputProps={{ style: { resize: "vertical" } }}
inputRef={textAreaRef}
defaultValue={curNote.body}
onChange={() => {
@@ -238,14 +238,14 @@ export const StudyDetail: FC<{
/>
<FormLabel component="legend">Editor</FormLabel>
<FormControlLabel
control={
<Checkbox
checked={preferences.noteEditorChecked}
onChange={handlePreferenceOnChange}
name="noteEditorChecked"
/>
}
label="NoteEditor"
control={
<Checkbox
checked={preferences.noteEditorChecked}
onChange={handlePreferenceOnChange}
name="noteEditorChecked"
/>
}
label="NoteEditor"
/>
</FormGroup>
</MuiDialogContent>