Wrap test in suggestionCard

This commit is contained in:
sabaimran 2024-11-11 20:12:39 -08:00
parent 48862a8400
commit 7bd2f83f97

View file

@ -19,11 +19,11 @@ export default function SuggestionCard(data: SuggestionCardProps) {
const cardContent = (
<Card className={cardClassName}>
<div className="flex">
<CardContent className="m-0 p-2">
<div className="flex w-full">
<CardContent className="m-0 p-2 w-full">
{convertSuggestionTitleToIconClass(data.title, data.color.toLowerCase())}
<CardDescription
className={`${descriptionClassName} sm:line-clamp-2 md:line-clamp-4 pt-1`}
className={`${descriptionClassName} sm:line-clamp-2 md:line-clamp-4 pt-1 break-words whitespace-pre-wrap max-w-full`}
>
{data.body}
</CardDescription>