mirror of
https://github.com/khoj-ai/khoj.git
synced 2024-11-27 17:35:07 +01:00
Wrap test in suggestionCard
This commit is contained in:
parent
48862a8400
commit
7bd2f83f97
1 changed files with 3 additions and 3 deletions
|
@ -19,11 +19,11 @@ export default function SuggestionCard(data: SuggestionCardProps) {
|
||||||
|
|
||||||
const cardContent = (
|
const cardContent = (
|
||||||
<Card className={cardClassName}>
|
<Card className={cardClassName}>
|
||||||
<div className="flex">
|
<div className="flex w-full">
|
||||||
<CardContent className="m-0 p-2">
|
<CardContent className="m-0 p-2 w-full">
|
||||||
{convertSuggestionTitleToIconClass(data.title, data.color.toLowerCase())}
|
{convertSuggestionTitleToIconClass(data.title, data.color.toLowerCase())}
|
||||||
<CardDescription
|
<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}
|
{data.body}
|
||||||
</CardDescription>
|
</CardDescription>
|
||||||
|
|
Loading…
Reference in a new issue