fix: Stretch scroll area so it retains parent width

This commit is contained in:
blessedcoolant 2023-06-13 02:33:48 +12:00 committed by psychedelicious
parent e40b3506c4
commit 79d53341de
2 changed files with 1 additions and 2 deletions

View File

@ -5,7 +5,7 @@ type IAIScrollArea = ScrollAreaProps;
export default function IAIScrollArea(props: IAIScrollArea) {
const { offsetScrollbars = true, ...rest } = props;
return (
<ScrollArea offsetScrollbars={offsetScrollbars} {...rest}>
<ScrollArea w="100%" offsetScrollbars={offsetScrollbars} {...rest}>
{props.children}
</ScrollArea>
);

View File

@ -47,7 +47,6 @@ const ParametersPinnedWrapper = (props: ParametersPinnedWrapperProps) => {
sx={{
flexDirection: 'column',
gap: 2,
width: PARAMETERS_PANEL_WIDTH,
}}
>
{props.children}