Skip to content

Commit

Permalink
fix: Scrolling bug in browsing dataset page
Browse files Browse the repository at this point in the history
Styling for making panel content take all the space should only be
done for the configurator panel
  • Loading branch information
ptbrowne committed Jan 27, 2022
1 parent f2254b8 commit aac02a6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
9 changes: 8 additions & 1 deletion app/configurator/components/configurator.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,14 @@ const ConfigureChartStep = () => {
}
return (
<>
<PanelLeftWrapper>
<PanelLeftWrapper
sx={{
flexGrow: 1,
display: "flex",
height: "100%",
flexDirection: "column",
}}
>
{state.chartConfig.chartType === "table" ? (
<ChartConfiguratorTable state={state} />
) : (
Expand Down
4 changes: 0 additions & 4 deletions app/configurator/components/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,6 @@ export const PanelLeftWrapper = ({
borderRightWidth: raised ? "1px" : undefined,
borderRightStyle: raised ? "solid" : undefined,
gridArea: "left",
flexGrow: 1,
display: "flex",
height: "100%",
flexDirection: "column",
...sx,
}}
>
Expand Down

0 comments on commit aac02a6

Please sign in to comment.