diff --git a/src/components/Product/ProductItem/productItem.css.ts b/src/components/Product/ProductItem/productItem.css.ts
index 17701c41..b1754519 100644
--- a/src/components/Product/ProductItem/productItem.css.ts
+++ b/src/components/Product/ProductItem/productItem.css.ts
@@ -13,6 +13,7 @@ export const productImage = style({
width: '100%',
height: 'auto',
minWidth: 163,
+ borderRadius: 6,
objectFit: 'cover',
aspectRatio: '1 / 1',
});
diff --git a/src/components/Product/ProductRecipeList/ProductRecipeList.tsx b/src/components/Product/ProductRecipeList/ProductRecipeList.tsx
index 3c901d91..afdca5e3 100644
--- a/src/components/Product/ProductRecipeList/ProductRecipeList.tsx
+++ b/src/components/Product/ProductRecipeList/ProductRecipeList.tsx
@@ -1,6 +1,6 @@
import { Link } from 'react-router-dom';
-import { container, moreItem, notFound, recipeLink } from './productRecipeList.css';
+import { container, moreItem, notFound, recipeLink, wrapper } from './productRecipeList.css';
import SearchNotFoundImage from '@/assets/search-notfound.png';
import { Text, ShowAllButton } from '@/components/Common';
@@ -41,7 +41,7 @@ const ProductRecipeList = ({ productId, productName }: ProductRecipeListProps) =
return (
{recipeToDisplay.map((recipe) => (
- -
+
-
))}
diff --git a/src/components/Product/ProductRecipeList/productRecipeList.css.ts b/src/components/Product/ProductRecipeList/productRecipeList.css.ts
index dcb4e844..37c80ea4 100644
--- a/src/components/Product/ProductRecipeList/productRecipeList.css.ts
+++ b/src/components/Product/ProductRecipeList/productRecipeList.css.ts
@@ -8,6 +8,12 @@ export const container = style({
overflowX: 'auto',
});
+export const wrapper = style({
+ height: '100%',
+ display: 'flex',
+ flex: '0 0 160px',
+});
+
export const moreItem = style({
display: 'flex',
justifyContent: 'center',
diff --git a/src/components/Recipe/CommentForm/CommentForm.tsx b/src/components/Recipe/CommentForm/CommentForm.tsx
index 24fc6ffa..f33e341f 100644
--- a/src/components/Recipe/CommentForm/CommentForm.tsx
+++ b/src/components/Recipe/CommentForm/CommentForm.tsx
@@ -1,8 +1,8 @@
import { useToastActionContext } from '@fun-eat/design-system';
import type { ChangeEventHandler, FormEventHandler, RefObject } from 'react';
-import { useRef, useState } from 'react';
+import { useRef, useState, useEffect } from 'react';
-import { commentForm, commentTextarea, container, sendButton } from './commentForm.css';
+import { buttonWrapper, commentForm, commentTextarea, container, sendButton } from './commentForm.css';
import { SvgIcon, Text } from '@/components/Common';
import { MemberImage } from '@/components/Members';
@@ -65,26 +65,32 @@ const CommentForm = ({ recipeId, scrollTargetRef }: CommentFormProps) => {
);
};
+ useEffect(() => {
+ autoResizeTextarea();
+ }, [commentValue]);
+
return (
diff --git a/src/components/Recipe/CommentForm/commentForm.css.ts b/src/components/Recipe/CommentForm/commentForm.css.ts
index a2fb3b99..10f82005 100644
--- a/src/components/Recipe/CommentForm/commentForm.css.ts
+++ b/src/components/Recipe/CommentForm/commentForm.css.ts
@@ -3,17 +3,17 @@ import { style, styleVariants } from '@vanilla-extract/css';
export const container = style({
display: 'flex',
- gap: 8,
alignItems: 'flex-end',
marginBottom: 24,
+ gap: 8,
});
export const commentForm = style({
display: 'flex',
- gap: 8,
alignItems: 'flex-end',
width: '100%',
- padding: '6px 16px 9px 16px',
+ padding: '6px 16px',
+ gap: 8,
background: vars.colors.background.category,
borderRadius: 20,
});
@@ -21,6 +21,7 @@ export const commentForm = style({
export const commentTextarea = style({
width: '100%',
height: '100%',
+ padding: '6px 0',
border: 'none',
outline: 'none',
background: 'none',
@@ -34,8 +35,13 @@ export const commentTextarea = style({
},
});
+export const buttonWrapper = style({
+ display: 'flex',
+ alignItems: 'center',
+ gap: 6,
+});
+
export const sendButtonStyles = style({
- display: 'inherit',
width: 36,
borderRadius: 45,
padding: '4px 10px',
diff --git a/src/components/Search/RecipeSearchResultPreviewList/RecipeSearchResultPreviewList.tsx b/src/components/Search/RecipeSearchResultPreviewList/RecipeSearchResultPreviewList.tsx
index b188fc6d..668e44bc 100644
--- a/src/components/Search/RecipeSearchResultPreviewList/RecipeSearchResultPreviewList.tsx
+++ b/src/components/Search/RecipeSearchResultPreviewList/RecipeSearchResultPreviewList.tsx
@@ -1,6 +1,6 @@
import { useRef } from 'react';
-import { listWrapper } from './recipeSearchResultPreviewList.css';
+import { container, wrapper } from './recipeSearchResultPreviewList.css';
import SearchNotFound from '../SearchNotFound/SearchNotFound';
import { ShowAllButton } from '@/components/Common';
@@ -26,9 +26,9 @@ const RecipeSearchResultPreviewList = ({ searchQuery }: RecipeSearchResultPrevie
}
return (
-
+
{displaySlice(false, recipes, 4).map((recipe, idx) => (
- -
+
-
{idx < 4 ? (
) : (
diff --git a/src/components/Search/RecipeSearchResultPreviewList/recipeSearchResultPreviewList.css.ts b/src/components/Search/RecipeSearchResultPreviewList/recipeSearchResultPreviewList.css.ts
index df2e9d1a..a72d1e0c 100644
--- a/src/components/Search/RecipeSearchResultPreviewList/recipeSearchResultPreviewList.css.ts
+++ b/src/components/Search/RecipeSearchResultPreviewList/recipeSearchResultPreviewList.css.ts
@@ -1,8 +1,14 @@
import { style } from '@vanilla-extract/css';
-export const listWrapper = style({
+export const container = style({
display: 'flex',
gap: 10,
alignItems: 'center',
overflowY: 'scroll',
});
+
+export const wrapper = style({
+ height: '100%',
+ display: 'flex',
+ flex: '0 0 160px',
+});