Merge pull request #192 from optuna/add-minor-changes

Add some minor improvements
This commit is contained in:
Masashi Shibata
2022-03-23 09:14:03 +09:00
committed by GitHub
2 changed files with 4 additions and 5 deletions
@@ -4,7 +4,6 @@ import {
Grid,
FormControl,
FormLabel,
InputLabel,
MenuItem,
Switch,
Select,
@@ -78,7 +77,7 @@ export const GraphSlice: FC<{
<Typography variant="h6" sx={{ margin: "1em 0", fontWeight: 600 }}>
Slice
</Typography>
{study !== null && study.directions.length !== 1 ? (
{study !== null && study.directions.length !== 1 && (
<FormControl component="fieldset">
<FormLabel component="legend">Objective ID:</FormLabel>
<Select value={objectiveId} onChange={handleObjectiveChange}>
@@ -89,9 +88,9 @@ export const GraphSlice: FC<{
))}
</Select>
</FormControl>
) : null}
)}
<FormControl component="fieldset">
<InputLabel id="parameter">Parameter</InputLabel>
<FormLabel component="legend">Parameter:</FormLabel>
<Select value={selected || ""} onChange={handleSelectedParam}>
{paramNames?.map((p, i) => (
<MenuItem value={p} key={i}>
+1 -1
View File
@@ -74,7 +74,7 @@ export const Note: FC<{
disabled={saving}
minRows={5}
multiline={true}
placeholder="Take a note (The note is saved to study's system_attrs)"
placeholder="Description about the study... (This note is saved to study's system_attrs)"
sx={{ width: "100%", margin: `${theme.spacing(1)} 0` }}
inputProps={{ style: { resize: "vertical" } }}
inputRef={textAreaRef}