diff --git a/src/components/Product/ProductList/productList.css.ts b/src/components/Product/ProductList/productList.css.ts index 7d17c4f7..3b85ccd8 100644 --- a/src/components/Product/ProductList/productList.css.ts +++ b/src/components/Product/ProductList/productList.css.ts @@ -2,7 +2,7 @@ import { style } from '@vanilla-extract/css'; export const container = style({ display: 'grid', - gridTemplateColumns: 'repeat(2, 1fr)', + gridTemplateColumns: 'minmax(0, 1fr) 1fr', gridAutoRows: 'auto', columnGap: 10, rowGap: 20, diff --git a/src/components/Product/ProductPreviewList/ProductPreviewList.tsx b/src/components/Product/ProductPreviewList/ProductPreviewList.tsx index e49c5bb7..d86a3959 100644 --- a/src/components/Product/ProductPreviewList/ProductPreviewList.tsx +++ b/src/components/Product/ProductPreviewList/ProductPreviewList.tsx @@ -1,6 +1,6 @@ import { Link } from 'react-router-dom'; -import { container } from './productPreviewList.css'; +import { container, productItemWrapper } from './productPreviewList.css'; import ProductItem from '../ProductItem/ProductItem'; import { PATH } from '@/constants/path'; @@ -23,7 +23,7 @@ const ProductPreviewList = ({ categoryId }: ProductPreviewListProps) => { return (