Skip to content

Commit

Permalink
fix: update drawer panel width (#920)
Browse files Browse the repository at this point in the history
* fix: update drawer panel width

* fix: update test files
  • Loading branch information
101wood authored Dec 12, 2023
1 parent 461fb18 commit 41673aa
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export const DrawerPanel = withDrawerPanelVariation(({ testId = 'drawer-panel',
const panelContent = isVertical ? (
<Box width={panelSize} data-testid={testId} flexGrow={1} height="100%" onLayout={onPanelLayout} flexDirection="row">
{!isStandardLeft && <Divider direction="vertical" kind="default" />}
<VStack height="100%" alignVertical="space-between">
<VStack height="100%" width="100%" alignVertical="space-between">
<Box width="100%" overflow="hidden">
{header}
<ScrollBox hideScroll={true}>{contents}</ScrollBox>
Expand All @@ -69,7 +69,7 @@ export const DrawerPanel = withDrawerPanelVariation(({ testId = 'drawer-panel',
) : (
<Box height={panelSize} width="100%" data-testid={testId} onLayout={onPanelLayout} flexDirection="column">
{!isStandardTop && <Divider direction="horizontal" kind="default" />}
<VStack height="100%" alignVertical="space-between">
<VStack height="100%" width="100%" alignVertical="space-between">
<Box width="100%" overflow="hidden">
{header}
<Box>{contents}</Box>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ exports[`<DrawerPanel /> when component is rendering match snapshot 1`] = `
box-sizing: border-box;
position: relative;
height: 100%;
width: 100%;
-webkit-box-pack: justify;
-webkit-justify-content: space-between;
justify-content: space-between;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,7 @@ exports[`<Drawer /> when Drawer is rendering each placement match snapshot 1`] =
box-sizing: border-box;
position: relative;
height: 100%;
width: 100%;
-webkit-box-pack: justify;
-webkit-justify-content: space-between;
justify-content: space-between;
Expand Down Expand Up @@ -533,6 +534,7 @@ exports[`<Drawer /> when Drawer is rendering each placement match snapshot 2`] =
box-sizing: border-box;
position: relative;
height: 100%;
width: 100%;
-webkit-box-pack: justify;
-webkit-justify-content: space-between;
justify-content: space-between;
Expand Down Expand Up @@ -861,6 +863,7 @@ exports[`<Drawer /> when Drawer is rendering each placement match snapshot 3`] =
box-sizing: border-box;
position: relative;
height: 100%;
width: 100%;
-webkit-box-pack: justify;
-webkit-justify-content: space-between;
justify-content: space-between;
Expand Down Expand Up @@ -1164,6 +1167,7 @@ exports[`<Drawer /> when Drawer is rendering each placement match snapshot 4`] =
box-sizing: border-box;
position: relative;
height: 100%;
width: 100%;
-webkit-box-pack: justify;
-webkit-justify-content: space-between;
justify-content: space-between;
Expand Down

1 comment on commit 41673aa

@vercel
Copy link

@vercel vercel bot commented on 41673aa Dec 12, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@101wood is attempting to deploy a commit to the Class101 Team on Vercel.

To accomplish this, @101wood needs to request access to the Team.

Afterwards, an owner of the Team is required to accept their membership request.

If you're already a member of the respective Vercel Team, make sure that your Personal Vercel Account is connected to your GitHub account.

Please sign in to comment.