Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions frontend/src/components/RecipeCard/RecipeCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export const RecipeCard = ({ recipe, favoriteRecipes, toggleFavorite }: Props) =
if (textRef.current) {
setTextHeight(textRef.current.clientHeight)
}
}, [recipe])
}, [textRef.current])

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

Expand Down Expand Up @@ -54,7 +54,15 @@ export const RecipeCard = ({ recipe, favoriteRecipes, toggleFavorite }: Props) =
}}
alt={recipe.title}
/>
<Box ref={textRef} flexDirection={"column"} display={"flex"} alignItems={"flex-start"} p={"16px"}>
<Box
ref={textRef}
flexDirection={"column"}
display={"flex"}
alignItems={"flex-start"}
p={"16px"}
position={"relative"}
width={"100%"}
>
{session?.access_token && (
<div
className={styles.icon}
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/pages/Result/Result.module.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.container {
padding: 16px 16px;
padding: 16px 16px 80px 16px;
}

.header {
Expand Down