(FIX): Better styles and some small fixes.
This commit is contained in:
parent
25ac0fd527
commit
90ebdd3a9a
@ -31,7 +31,7 @@ export default function RecipeCardLarge({ recipe }: RecipeCardLargeProps) {
|
||||
|
||||
return (
|
||||
<div className="flex flex-col items-center justify-between rounded-lg border-gray-300 border shadow-md p-4 flex-shrink-0">
|
||||
<img className="size-80 rounded-sm" src={RecipePlaceholder} />
|
||||
<img className="size-80 rounded-sm border border-gray-200 shadow-sm shadow-gray-100" src={RecipePlaceholder} />
|
||||
<div className="w-full mt-8">
|
||||
<h2 className="font-semibold overflow-hidden whitespace-nowrap text-ellipsis">
|
||||
{recipe.Title}
|
||||
|
||||
@ -25,7 +25,7 @@ export default function RecipeCardSmall({ recipe }: RecipeCardSmallProps) {
|
||||
|
||||
return (
|
||||
<div className="flex flex-col items-center justify-between rounded-lg border-gray-300 border shadow-md p-4 flex-shrink-0">
|
||||
<img className="size-52 md:size-48 rounded-sm" src={RecipePlaceholder} />
|
||||
<img className="size-52 md:size-48 rounded-sm border border-gray-200 shadow-sm shadow-gray-100" src={RecipePlaceholder} />
|
||||
<div className="w-52 md:w-48 mt-8">
|
||||
<h2 className="font-semibold overflow-hidden whitespace-nowrap text-ellipsis">
|
||||
{recipe.Title}
|
||||
|
||||
@ -63,7 +63,10 @@ export default function RecipeSearchResult({ recipe }: RecipeSearchResultProps)
|
||||
)}
|
||||
</div>
|
||||
</div>
|
||||
<p className="text-sm my-2 text-center md:text-left overflow-hidden text-ellipsis break-all"
|
||||
<div className="my-1">
|
||||
<p className="text-xs text-gray-500 italic">{recipe.Tags.map(x => x.Name).join(", ")}</p>
|
||||
</div>
|
||||
<p className="text-sm text-center md:text-left overflow-hidden text-ellipsis break-all"
|
||||
style={{ display: "-webkit-box", WebkitLineClamp: 3, WebkitBoxOrient: "vertical" }}>
|
||||
{recipe.Description}
|
||||
</p>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user