Skip to content

Commit

Permalink
fix(ui-xpansion): remove styles that causes display issues
Browse files Browse the repository at this point in the history
  • Loading branch information
hdinia committed Oct 5, 2023
1 parent 7adbbdb commit a4a146c
Showing 1 changed file with 18 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ function SettingsForm(props: PropType) {
const handleObjectChange = (
objectKey: keyof XpansionSettings,
key: string,
value: string | number | boolean | string[],
value: string | number | boolean | string[]
) => {
setSaveAllowed(true);
setCurrentSettings((prevSettings) => ({
Expand Down Expand Up @@ -180,22 +180,22 @@ function SettingsForm(props: PropType) {
label={t("xpansion.solver")}
data={currentSettings.solver || ""}
handleChange={handleChange}
optional
sx={{
minWidth: "100%",
}}
optional
/>
<TextField
type="number"
label={t("xpansion.batchSize")}
variant="filled"
value={currentSettings.batch_size || ""}
onChange={(e) =>
handleChange("batch_size", parseInt(e.target.value, 10))
}
sx={{ mb: 1 }}
/>
</SelectFields>
<TextField
type="number"
label={t("xpansion.batchSize")}
variant="filled"
value={currentSettings.batch_size || ""}
onChange={(e) =>
handleChange("batch_size", parseInt(e.target.value, 10))
}
sx={{ mb: 1 }}
/>
<TextField
type="number"
label={t("xpansion.timeLimit")}
Expand All @@ -204,7 +204,7 @@ function SettingsForm(props: PropType) {
onChange={(e) =>
handleChange(
"timelimit",
Math.round(parseFloat(e.target.value) * 3600),
Math.round(parseFloat(e.target.value) * 3600)
)
}
sx={{ mb: 1 }}
Expand Down Expand Up @@ -270,7 +270,7 @@ function SettingsForm(props: PropType) {
onChange={(e) =>
handleChange(
"ampl.solve_bounds_frequency",
parseFloat(e.target.value),
parseFloat(e.target.value)
)
}
sx={{ mb: 1 }}
Expand Down Expand Up @@ -327,7 +327,7 @@ function SettingsForm(props: PropType) {
currentSettings["yearly-weights"] &&
onRead(
XpansionResourceType.weights,
currentSettings["yearly-weights"] || "",
currentSettings["yearly-weights"] || ""
)
}
/>
Expand All @@ -351,7 +351,7 @@ function SettingsForm(props: PropType) {
currentSettings["additional-constraints"] &&
onRead(
XpansionResourceType.constraints,
currentSettings["additional-constraints"] || "",
currentSettings["additional-constraints"] || ""
)
}
/>
Expand Down Expand Up @@ -381,7 +381,7 @@ function SettingsForm(props: PropType) {
handleObjectChange(
"sensitivity_config",
"epsilon",
parseFloat(e.target.value),
parseFloat(e.target.value)
)
}
/>
Expand All @@ -401,7 +401,7 @@ function SettingsForm(props: PropType) {
handleObjectChange(
"sensitivity_config",
"projection",
e.target.value as string[],
e.target.value as string[]
)
}
variant="filled"
Expand Down

0 comments on commit a4a146c

Please sign in to comment.