Skip to content

Commit cf55478

Browse files
authored
Merge pull request #396 from ut-code/task/minor-frontend-updates
task: Minor frontend updates
2 parents 35b179f + 9f93b8c commit cf55478

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

frontend/src/components/RecipeCard/RecipeCard.tsx

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export const RecipeCard = ({ recipe, favoriteRecipes, toggleFavorite }: Props) =
2525
if (textRef.current) {
2626
setTextHeight(textRef.current.clientHeight)
2727
}
28-
}, [recipe])
28+
}, [textRef.current])
2929

3030
const materialsConverted = recipe.materials.join("・")
3131

@@ -54,7 +54,15 @@ export const RecipeCard = ({ recipe, favoriteRecipes, toggleFavorite }: Props) =
5454
}}
5555
alt={recipe.title}
5656
/>
57-
<Box ref={textRef} flexDirection={"column"} display={"flex"} alignItems={"flex-start"} p={"16px"}>
57+
<Box
58+
ref={textRef}
59+
flexDirection={"column"}
60+
display={"flex"}
61+
alignItems={"flex-start"}
62+
p={"16px"}
63+
position={"relative"}
64+
width={"100%"}
65+
>
5866
{session?.access_token && (
5967
<div
6068
className={styles.icon}

frontend/src/pages/Result/Result.module.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
.container {
2-
padding: 16px 16px;
2+
padding: 16px 16px 80px 16px;
33
}
44

55
.header {

0 commit comments

Comments
 (0)