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 (
{productToDisplay.map((product) => (
- -
+
-
diff --git a/src/components/Product/ProductPreviewList/productPreviewList.css.ts b/src/components/Product/ProductPreviewList/productPreviewList.css.ts
index 5880a330..db05341f 100644
--- a/src/components/Product/ProductPreviewList/productPreviewList.css.ts
+++ b/src/components/Product/ProductPreviewList/productPreviewList.css.ts
@@ -6,3 +6,7 @@ export const container = style({
padding: '0 20px',
overflowX: 'auto',
});
+
+export const productItemWrapper = style({
+ minWidth: 163,
+});
diff --git a/src/components/Rank/RecipeRankingList/recipeRankingList.css.ts b/src/components/Rank/RecipeRankingList/recipeRankingList.css.ts
index 7d17c4f7..3b85ccd8 100644
--- a/src/components/Rank/RecipeRankingList/recipeRankingList.css.ts
+++ b/src/components/Rank/RecipeRankingList/recipeRankingList.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/Rank/ReviewRankingItem/reviewRankingItem.css.ts b/src/components/Rank/ReviewRankingItem/reviewRankingItem.css.ts
index 72d65c24..212fff57 100644
--- a/src/components/Rank/ReviewRankingItem/reviewRankingItem.css.ts
+++ b/src/components/Rank/ReviewRankingItem/reviewRankingItem.css.ts
@@ -4,7 +4,6 @@ import { style } from '@vanilla-extract/css';
export const reviewImage = style({
width: '100%',
height: 'auto',
- minWidth: 164,
borderRadius: '6px',
objectFit: 'cover',
aspectRatio: '164 / 90',
diff --git a/src/components/Rank/ReviewRankingList/ReviewRankingList.tsx b/src/components/Rank/ReviewRankingList/ReviewRankingList.tsx
index 600f49a5..a76f1666 100644
--- a/src/components/Rank/ReviewRankingList/ReviewRankingList.tsx
+++ b/src/components/Rank/ReviewRankingList/ReviewRankingList.tsx
@@ -1,6 +1,6 @@
import { Link } from 'react-router-dom';
-import { container } from './reviewRankingList.css';
+import { container, reviewItemWrapper } from './reviewRankingList.css';
import ReviewRankingItem from '../ReviewRankingItem/ReviewRankingItem';
import { PATH } from '@/constants/path';
@@ -20,7 +20,7 @@ const ReviewRankingList = () => {
return (
{reviews.map(({ reviewId, productName, content, tags, image }) => (
- -
+
-
diff --git a/src/components/Rank/ReviewRankingList/reviewRankingList.css.ts b/src/components/Rank/ReviewRankingList/reviewRankingList.css.ts
index 68a282a0..92798984 100644
--- a/src/components/Rank/ReviewRankingList/reviewRankingList.css.ts
+++ b/src/components/Rank/ReviewRankingList/reviewRankingList.css.ts
@@ -5,3 +5,7 @@ export const container = style({
gap: 10,
padding: '0 20px',
});
+
+export const reviewItemWrapper = style({
+ minWidth: 164,
+});
diff --git a/src/components/Recipe/RecipeList/recipeList.css.ts b/src/components/Recipe/RecipeList/recipeList.css.ts
index 5de3d059..f98b8706 100644
--- a/src/components/Recipe/RecipeList/recipeList.css.ts
+++ b/src/components/Recipe/RecipeList/recipeList.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/styles/common.css.ts b/src/styles/common.css.ts
index 51299597..8d852417 100644
--- a/src/styles/common.css.ts
+++ b/src/styles/common.css.ts
@@ -1,7 +1,6 @@
import { style } from '@vanilla-extract/css';
export const ellipsis = style({
- maxWidth: 163,
whiteSpace: 'nowrap',
overflow: 'hidden',
textOverflow: 'ellipsis',