Skip to content

Commit ba36669

Browse files
committed
fix[notifications]: error text wrapping
1 parent eb5d019 commit ba36669

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

sim/app/w/[id]/components/control-bar/components/notification-dropdown-item/notification-dropdown-item.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,9 @@ export function NotificationDropdownItem({
6464
</span>
6565
<span className="text-xs text-muted-foreground">{timeAgo}</span>
6666
</div>
67-
<p className="text-sm text-foreground">{message}</p>
67+
<p className="text-sm text-foreground break-words break-all whitespace-normal">
68+
{message.length > 100 ? `${message.slice(0, 60)}...` : message}
69+
</p>
6870
</div>
6971
</DropdownMenuItem>
7072
)

sim/app/w/[id]/components/notifications/notifications.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,9 @@ function NotificationAlert({ notification, isFading, onHide }: NotificationAlert
322322

323323
<AlertDescription className="space-y-4">
324324
{/* Message with auto-expanding and max height */}
325-
<p className="max-h-[300px] overflow-hidden text-ellipsis">{message}</p>
325+
<p className="max-h-[300px] overflow-hidden break-words break-all whitespace-normal">
326+
{message}
327+
</p>
326328

327329
{/* Optional sections with copyable content */}
328330
{options?.sections?.map((section, index) => (

0 commit comments

Comments
 (0)