[ENG-1130] fix toast overflow (#1376)

fix toast overflow
This commit is contained in:
nikec authored and GitHub committed 2023-09-25 12:38:12 +00:00
1 parent d7c4b1ff1d
commit 2ad42a599b
1 file changed
+10 -2
+10 -2
View File
@@ -111,9 +111,17 @@ const Toast = ({ closable = true, action, cancel, ...props }: ToastProps) => {
)}
<div className="flex grow flex-col">
{title && <span className="font-medium text-ink">{title}</span>}
{title && (
<span className="font-medium text-ink" style={{ wordBreak: 'break-word' }}>
{title}
</span>
)}
<div className="mt-0.5">{body}</div>
{body && (
<div className="mt-0.5" style={{ wordBreak: 'break-word' }}>
{body}
</div>
)}
{(action || cancel) && (
<div className="mt-2.5 flex gap-2">