From 7c1b728c7bb7eb42f3ee0f6ad6df8ea16c3ede5a Mon Sep 17 00:00:00 2001 From: hae-on Date: Tue, 23 Apr 2024 11:52:10 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20grid,=20flex=20=EB=8B=A4=EB=A5=B8=20?= =?UTF-8?q?=EB=B0=A9=EB=B2=95=EC=9C=BC=EB=A1=9C=20=ED=95=B4=EA=B2=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Product/ProductList/productList.css.ts | 2 +- .../Product/ProductPreviewList/ProductPreviewList.tsx | 4 ++-- .../Product/ProductPreviewList/productPreviewList.css.ts | 4 ++++ .../Rank/RecipeRankingList/recipeRankingList.css.ts | 2 +- .../Rank/ReviewRankingItem/reviewRankingItem.css.ts | 1 - src/components/Rank/ReviewRankingList/ReviewRankingList.tsx | 4 ++-- .../Rank/ReviewRankingList/reviewRankingList.css.ts | 4 ++++ src/components/Recipe/RecipeList/recipeList.css.ts | 2 +- src/styles/common.css.ts | 1 - 9 files changed, 15 insertions(+), 9 deletions(-) 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 (