Skip to content

Commit c28ff1d

Browse files
committed
chore: change width of inner container instead
1 parent 509a4f5 commit c28ff1d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/compass-components/src/components/drawer/drawer/drawer.styles.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ const getBaseStyles = ({ theme }: { theme: Theme }) => css`
5454
all: unset;
5555
background-color: ${color[theme].background.primary.default};
5656
border: 1px solid ${color[theme].border.secondary.default};
57-
width: ${PANEL_WIDTH}px;
57+
max-width: ${PANEL_WIDTH}px;
5858
height: 100%;
5959
overflow: hidden;
6060
box-sizing: border-box;
@@ -206,6 +206,7 @@ const getInnerOpenContainerStyles = css`
206206
transition-duration: ${transitionDuration.slowest}ms;
207207
transition-timing-function: linear;
208208
opacity: 1;
209+
width: ${PANEL_WIDTH}px;
209210
`;
210211

211212
export const getInnerContainerStyles = ({

0 commit comments

Comments
 (0)