Skip to content

Commit

Permalink
Allow sampler output view to be vertically expanded
Browse files Browse the repository at this point in the history
  • Loading branch information
WardBrian committed Dec 4, 2024
1 parent 75d50f9 commit c01c061
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 c01c061

Please sign in to comment.