Skip to content

Commit

Permalink
fix: スタイルを修正
Browse files Browse the repository at this point in the history
  • Loading branch information
toshusai committed Oct 13, 2023
1 parent d6424e7 commit fe812a9
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions packages/react/src/components/Modal/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,15 @@ const ModalBackground = animated(styled.div<{
padding: 40px 0;
box-sizing: border-box;
${theme((o) => [o.bg.surface4])}
background-color: ${({ theme }) => theme.color.surface4};
@media ${({ theme }) => maxWidth(theme.breakpoint.screen1)} {
${(p) =>
p.$bottomSheet !== false &&
css`
padding: 0;
`}
}
`)

const ModalDialog = animated(styled.div<{
Expand All @@ -250,8 +258,11 @@ const ModalDialog = animated(styled.div<{
}
}}px;
${theme((o) => [o.bg.background1, o.borderRadius(24)])}
background-color: ${({ theme }) => theme.color.background1};
border-radius: 24px;
@media ${({ theme }) => maxWidth(theme.breakpoint.screen1)} {
width: calc(100% - 48px);
${(p) =>
p.bottomSheet !== false &&
css`
Expand Down

0 comments on commit fe812a9

Please sign in to comment.