Skip to content

Commit

Permalink
fix: 웹뷰 일 때 상단 마진 제거
Browse files Browse the repository at this point in the history
  • Loading branch information
alstn2468 committed Jan 1, 2025
1 parent fce11f5 commit f1ec18e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions apps/admin/src/pages/ShowAddPage/ShowAddPage.styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -454,8 +454,8 @@ const MobileHeaderText = styled.div`
color: ${({ theme }) => theme.palette.grey.g90};
`;

const MobileContent = styled.div`
margin-top: 52px;
const MobileContent = styled.div<{ isWebView: boolean }>`
margin-top: ${({ isWebView }) => (isWebView ? '0' : '52px')};
padding: 32px 20px;
${mq_lg} {
Expand Down
2 changes: 1 addition & 1 deletion apps/admin/src/pages/ShowAddPage/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,7 @@ const ShowAddPage = ({ step }: ShowAddPageProps) => {
<Styled.CardContent>{showAddPageContent}</Styled.CardContent>
</Styled.Card>
</Styled.Content>
<Styled.MobileContent>{showAddPageContent}</Styled.MobileContent>
<Styled.MobileContent isWebView={isWebView}>{showAddPageContent}</Styled.MobileContent>
</Styled.ShowAddPage>
);
};
Expand Down

0 comments on commit f1ec18e

Please sign in to comment.