From 765ef499258fc45cd7c66183a72848d8da6e8734 Mon Sep 17 00:00:00 2001 From: David Dada Date: Sun, 21 Jun 2026 22:14:27 +0100 Subject: [PATCH] fix(web): wrap long toast text so it stops overflowing the toast MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit humanizeError can surface a raw ~220-char error/object id with no spaces (moveErrors.ts), which sonner's default description does not break — so it ran past the toast's right edge. Add break-words to the toast title + description classNames. Mirrors the bell-inbox fix (#105/#102) on the other notification surface. Co-Authored-By: Claude Opus 4.8 (1M context) --- web/components/ui/sonner.tsx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/web/components/ui/sonner.tsx b/web/components/ui/sonner.tsx index 66cecab..97d9b95 100644 --- a/web/components/ui/sonner.tsx +++ b/web/components/ui/sonner.tsx @@ -38,6 +38,11 @@ const Toaster = ({ ...props }: ToasterProps) => { toastOptions={{ classNames: { toast: "cn-toast", + // Break long unbroken strings (e.g. humanizeError can surface a raw + // 220-char error / object id with no spaces) so they wrap inside the + // toast instead of running past its right edge. + title: "break-words", + description: "break-words", }, }} {...props}