Skip to content

Commit

Permalink
style: fix modal width
Browse files Browse the repository at this point in the history
  • Loading branch information
Juone2 committed Sep 26, 2024
1 parent 14bb3e2 commit 1f8e49b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
Binary file modified .yarn/install-state.gz
Binary file not shown.
8 changes: 5 additions & 3 deletions src/components/modal/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ interface propsType extends headerPropsType, contentPropsType {
buttonList: JSX.Element[];
close: () => void;
children?: ReactNode;
width?: string;
}

export const Modal = ({
Expand All @@ -21,11 +22,12 @@ export const Modal = ({
close,
className,
children,
width = '560px',
}: propsType) => {
return (
<_Background>
<OutsideClickHandler onOutsideClick={close}>
<_Modal className={className}>
<_Modal className={className} width={width}>
<_CloseWrapper onClick={close}>
<Close size={18} />
</_CloseWrapper>
Expand Down Expand Up @@ -73,8 +75,8 @@ const _BtnWrapper = styled.div`
}
`;

const _Modal = styled.div`
width: 560px;
const _Modal = styled.div<{ width: string }>`
width: ${({ width }) => width};
background-color: ${({ theme }) => theme.color.gray1};
box-shadow: 0 1px 20px rgba(204, 204, 204, 0.24);
border-radius: 8px;
Expand Down

0 comments on commit 1f8e49b

Please sign in to comment.