diff --git a/src/components/home/ProductItem/styled.ts b/src/components/home/ProductItem/styled.ts index 19bd1303..2b3913c6 100644 --- a/src/components/home/ProductItem/styled.ts +++ b/src/components/home/ProductItem/styled.ts @@ -3,17 +3,7 @@ import styled from '@emotion/styled' import { Image, ToggleButton } from '@offer-ui/react' const Container = styled.div` - flex: 1 0 22%; - - max-width: 25%; - cursor: pointer; - - ${({ theme }) => theme.mediaQuery.mobile} { - flex: 1 0 44%; - - max-width: 48%; - } ` const ProductImg = styled(Image)` diff --git a/src/components/home/ProductList/styled.ts b/src/components/home/ProductList/styled.ts index ed68ee8b..c96ccbc7 100644 --- a/src/components/home/ProductList/styled.ts +++ b/src/components/home/ProductList/styled.ts @@ -1,20 +1,20 @@ import styled from '@emotion/styled' const ProductListWrapper = styled.div` - display: flex; - flex-wrap: wrap; - gap: 30px; - justify-content: start; + display: grid; + grid-template-columns: repeat(4, 1fr); + gap: 28px 30px; margin-top: 20px; ${({ theme }): string => theme.mediaQuery.tablet} { - gap: 18px 20px; + gap: 20px 15px; margin-top: 20px; } ${({ theme }): string => theme.mediaQuery.mobile} { - gap: 8px 20px; + grid-template-columns: repeat(2, 1fr); + gap: 20px 8px; margin-top: 16px; } diff --git a/src/pages/messagebox/index.tsx b/src/pages/messagebox/index.tsx index b231ff26..925a840c 100644 --- a/src/pages/messagebox/index.tsx +++ b/src/pages/messagebox/index.tsx @@ -126,8 +126,8 @@ const MessageBoxPage = ({ roomId: defaultRoomId }: Props): ReactElement => {