mirror of
https://github.com/wassname/optuna-dashboard.git
synced 2026-09-17 12:30:35 +08:00
Merge pull request #192 from optuna/add-minor-changes
Add some minor improvements
This commit is contained in:
@@ -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}>
|
||||
|
||||
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user