Merge pull request #260 from ArnasDon/fix/inbox-chat-sidebar-overlap

fix(inbox): chat thread overlapping contact sidebar on fullscreen desktop (#257)
This commit is contained in:
Arnas Donauskas 2026-06-18 10:28:24 +03:00 committed by GitHub
commit 9eaa15b9df
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -721,7 +721,15 @@ export function MessageThread({
: "Assign";
return (
<div className={cn("flex flex-1 flex-col", DOODLE_BG_CLASSES)}>
// `min-w-0` is load-bearing: the page already puts min-w-0 on the
// thread's flex *wrapper* (issue #165), but this root keeps the
// default `min-width: auto`, so a single wide message (long unbroken
// URL/word) expands the whole thread past its flex share and the chat
// paints on top of the contact sidebar at lg+ — outgoing bubbles get
// clipped and the hover toolbar overlaps the Tags panel. Letting the
// root shrink lets the bubbles' break-words / max-w caps apply.
// Issue #257.
<div className={cn("flex min-w-0 flex-1 flex-col", DOODLE_BG_CLASSES)}>
{/* Header — solid card surface sits on top of the doodle so the
name/avatar/dropdowns stay legible. */}
<div className="flex items-center justify-between gap-2 border-b border-border bg-card px-3 py-3 sm:px-4">