:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
fix(conversations): wrap wide support message content to fit width (#73844)
Christiaan Hendriksen02f79805837e
diff --git a/products/conversations/frontend/components/Chat/Message.tsx b/products/conversations/frontend/components/Chat/Message.tsxindex b9a8769efb22..45b0b0d3c33c 100644--- a/products/conversations/frontend/components/Chat/Message.tsx+++ b/products/conversations/frontend/components/Chat/Message.tsx@@ -64,7 +64,7 @@ export function Message({return (<div className={`flex ${isCustomer ? 'mr-10' : 'flex-row-reverse ml-10'} mb-4`}>- <div className="flex gap-2">+ <div className="flex gap-2 min-w-0"><div className="flex flex-col min-w-0 items-start"><div className="flex items-center justify-between w-full gap-2 mb-1"><ProfilePicturediff --git a/products/conversations/frontend/components/Editor/SupportEditor.scss b/products/conversations/frontend/components/Editor/SupportEditor.scssindex 978c666f0f96..fc0a9f52c73f 100644--- a/products/conversations/frontend/components/Editor/SupportEditor.scss+++ b/products/conversations/frontend/components/Editor/SupportEditor.scss@@ -102,6 +102,9 @@}.SupportRichContentPreview {+ // Break long unbreakable strings (URLs, tokens) so a message can't grow wider than the ticket pane.+ overflow-wrap: anywhere;+p {margin-bottom: 0;}diff --git a/products/conversations/frontend/components/Editor/SupportMarkdown.tsx b/products/conversations/frontend/components/Editor/SupportMarkdown.tsxindex 4c5b6f919a96..296d409eae52 100644--- a/products/conversations/frontend/components/Editor/SupportMarkdown.tsx+++ b/products/conversations/frontend/components/Editor/SupportMarkdown.tsx@@ -12,14 +12,14 @@ export interface SupportMarkdownProps extends LemonMarkdownProps {}* Markdown renderer for support messages.* Wraps LemonMarkdown with support-specific styling.*/-export function SupportMarkdown({ className, ...props }: SupportMarkdownProps): JSX.Element {+export function SupportMarkdown({ className, wrapCode = true, ...props }: SupportMarkdownProps): JSX.Element {const { handleClick, lightbox } = useImageLightbox()return (<>{/* eslint-disable-next-line jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions */}<div onClick={handleClick}>- <LemonMarkdown {...props} className={clsx('SupportMarkdown', className)} />+ <LemonMarkdown {...props} wrapCode={wrapCode} className={clsx('SupportMarkdown', className)} /></div>{lightbox}</>