Papermark is the open-source DocSend alternative and secure data rooms with built-in analytics and custom domains.
fix: Q&A content text wrapping so questions and answers are not cut off
Cursor Agent15abb2e7dfbe
diff --git a/ee/features/conversations/components/shared/conversation-message.tsx b/ee/features/conversations/components/shared/conversation-message.tsxindex 8970c46f..5d04c297 100644--- a/ee/features/conversations/components/shared/conversation-message.tsx+++ b/ee/features/conversations/components/shared/conversation-message.tsx@@ -29,7 +29,7 @@ export function ConversationMessage({return (<div className="group relative"><div- className={`flex w-max max-w-[80%] cursor-pointer flex-col rounded-lg px-4 py-2 transition-all ${+ className={`flex w-fit max-w-[80%] cursor-pointer flex-col rounded-lg px-4 py-2 transition-all ${isAuthor ? "ml-auto bg-primary text-primary-foreground" : "bg-muted"} ${isSelected@@ -41,7 +41,9 @@ export function ConversationMessage({onClick={() => canBeSelected && onSelect?.(message.id, isVisitor)}><div className="flex items-start justify-between gap-2">- <p className="flex-1 text-sm">{message.content}</p>+ <p className="min-w-0 flex-1 break-words text-sm">+ {message.content}+ </p><div className="mt-0.5 flex items-center gap-1">{isPublished && (<div className="flex items-center text-xs opacity-60">diff --git a/ee/features/conversations/components/viewer/faq-section.tsx b/ee/features/conversations/components/viewer/faq-section.tsxindex 302ce6ff..643d3719 100644--- a/ee/features/conversations/components/viewer/faq-section.tsx+++ b/ee/features/conversations/components/viewer/faq-section.tsx@@ -203,12 +203,12 @@ export function FAQSection({value={faq.id}className="rounded-md border border-gray-200 bg-white">- <AccordionTrigger className="px-3 py-2.5 hover:no-underline">+ <AccordionTrigger className="min-w-0 px-3 py-2.5 hover:no-underline"><div className="flex w-full items-start justify-between gap-2"><span className="flex-shrink-0 rounded bg-secondary px-1.5 py-0.5 text-xs font-medium text-secondary-foreground">Q</span>- <div className="line-clamp-2 min-w-0 flex-1 text-left text-sm font-medium text-gray-900">+ <div className="line-clamp-2 min-w-0 flex-1 break-words text-left text-sm font-medium text-gray-900">{faq.editedQuestion}</div></div>@@ -220,7 +220,7 @@ export function FAQSection({<span className="flex-shrink-0 rounded bg-primary/80 px-1.5 py-0.5 text-xs font-medium text-primary-foreground">A</span>- <p className="whitespace-pre-wrap text-sm font-medium text-gray-700">+ <p className="min-w-0 break-words whitespace-pre-wrap text-sm font-medium text-gray-700">{faq.answer}</p></div>