Skip to content

: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.

feat: make the chatbox stay fixed (#68712)

Alex Va0598d99ea23
diff --git a/products/conversations/frontend/scenes/ticket/SupportTicketScene.tsx b/products/conversations/frontend/scenes/ticket/SupportTicketScene.tsx
index 6e93b16d7f1d..45286bceaf43 100644
--- a/products/conversations/frontend/scenes/ticket/SupportTicketScene.tsx
+++ b/products/conversations/frontend/scenes/ticket/SupportTicketScene.tsx
@@ -142,7 +142,7 @@ export function SupportTicketScene({ ticketId }: { ticketId: string }): JSX.Elem
}
return (
- <SceneContent>
+ <SceneContent className="lg:min-h-0 lg:flex-1">
<SceneTitleSection
name={`Ticket: ${ticket?.ticket_number?.toString() || ticket?.id || ''}`}
nameSuffix={
@@ -159,7 +159,7 @@ export function SupportTicketScene({ ticketId }: { ticketId: string }): JSX.Elem
}}
/>
- <div className="flex flex-col lg:flex-row items-start">
+ <div className="flex flex-col lg:flex-row items-start lg:min-h-0 lg:flex-1">
<div
style={{ width: chatPanelWidth(desiredSize) }}
className="relative shrink-0 pr-2 max-w-full lg:max-w-[calc(100%-300px)] mb-4 lg:mb-0"
@@ -181,8 +181,8 @@ export function SupportTicketScene({ ticketId }: { ticketId: string }): JSX.Elem
onDraftChange={setDraftContent}
isPrivate={draftIsPrivate}
onPrivateChange={setDraftIsPrivate}
- minHeight="min(400px, calc(100svh - 320px))"
- maxHeight="min(600px, calc(100svh - 320px))"
+ minHeight="min(400px, calc(100svh - 20rem))"
+ maxHeight="calc(100svh - 20rem)"
/>
<div className="hidden lg:block">
<Resizer {...resizerLogicProps} className="z-20" />
@@ -190,7 +190,7 @@ export function SupportTicketScene({ ticketId }: { ticketId: string }): JSX.Elem
</div>
{/* Sidebar with all metadata */}
- <div className="space-y-4 flex-1 min-w-[300px] pl-2">
+ <div className="space-y-4 flex-1 min-w-[300px] pl-2 lg:h-full lg:min-h-0 lg:overflow-y-auto lg:pb-4">
<LemonCard hoverEffect={false} className="p-3">
{/* Customer */}
{ticket?.distinct_id && (