mirror of
https://github.com/wassname/optuna-dashboard.git
synced 2026-09-26 14:00:39 +08:00
Make note editor resizable
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user