mirror of
https://github.com/khoaliber/khoj.git
synced 2026-03-07 13:23:15 +00:00
Wrap test in suggestionCard
This commit is contained in:
@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user