Skip to content

Commit

Permalink
Merge pull request #252 from flatironinstitute/feature/sampler-output…
Browse files Browse the repository at this point in the history
…-slider

Use Split component to allow sampler output view to take up more vertical space
  • Loading branch information
WardBrian authored Dec 4, 2024
2 parents 75d50f9 + c01c061 commit 9057bf3
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions gui/src/app/pages/HomePage/SamplingWindow/SamplingWindow.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { FunctionComponent, useCallback, useContext } from "react";

import { Split } from "@geoffcox/react-splitter";
import Box from "@mui/material/Box";
import Divider from "@mui/material/Divider";
import Grid from "@mui/material/Grid";
import { CompileContext } from "@SpCompilation/CompileContext";
import RunPanel from "@SpComponents/RunPanel";
Expand Down Expand Up @@ -36,7 +36,7 @@ const SamplingWindow: FunctionComponent<SamplingWindowProps> = () => {
const { sampler, latestRun } = useStanSampler(compiledMainJsUrl);
const isSampling = latestRun.status === "sampling";
return (
<Box height="100%" display="flex" flexDirection="column">
<Split horizontal initialPrimarySize="30%" minSecondarySize="10%">
<Grid container>
<Grid item xs={12} sm={4}>
<SamplingOptsPanel
Expand All @@ -54,11 +54,12 @@ const SamplingWindow: FunctionComponent<SamplingWindowProps> = () => {
/>
</Grid>
</Grid>
<Divider />
<Box flex="1" overflow="hidden">
<SamplingResultsArea latestRun={latestRun} />
<Box height="100%" display="flex" flexDirection="column">
<Box flex="1" overflow="hidden">
<SamplingResultsArea latestRun={latestRun} />
</Box>
</Box>
</Box>
</Split>
);
};

Expand Down

0 comments on commit 9057bf3

Please sign in to comment.