Skip to content

Commit

Permalink
fix(ui-config): style issues
Browse files Browse the repository at this point in the history
  • Loading branch information
skamril committed Jun 18, 2024
1 parent d02b14a commit e72ffb1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ function Fields(props: Props) {
/>
<SwitchFE
name="leapYear"
sx={{ flex: 1, flexBasis: "100%" }}
sx={{ flexBasis: "100%" }}
label={t("study.configuration.general.leapYear")}
control={control}
rules={{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { Paper } from "@mui/material";
import * as R from "ramda";
import { useMemo, useState } from "react";
import { useOutletContext } from "react-router";
Expand All @@ -13,6 +12,7 @@ import Optimization from "./Optimization";
import TimeSeriesManagement from "./TimeSeriesManagement";
import TableMode from "../../../../common/TableMode";
import SplitView from "../../../../common/SplitView";
import ViewWrapper from "../../../../common/page/ViewWrapper";

function Configuration() {
const { study } = useOutletContext<{ study: StudyMetadata }>();
Expand Down Expand Up @@ -40,6 +40,7 @@ function Configuration() {

return (
<SplitView id="configuration" sizes={[15, 85]}>
{/* Left */}
<PropertiesView
mainContent={
<ListElement
Expand All @@ -51,8 +52,8 @@ function Configuration() {
/>
}
/>

<Paper sx={{ width: 1, height: 1, padding: 2, overflow: "auto" }}>
{/* Right */}
<ViewWrapper>
{R.cond([
[R.equals(0), () => <General />],
[R.equals(1), () => <TimeSeriesManagement />],
Expand Down Expand Up @@ -108,7 +109,7 @@ function Configuration() {
),
],
])(tabList[currentTabIndex].id)}
</Paper>
</ViewWrapper>
</SplitView>
);
}
Expand Down

0 comments on commit e72ffb1

Please sign in to comment.