mirror of
https://github.com/simstudioai/sim.git
synced 2026-09-24 15:45:35 +08:00
fix[notifications]: error text wrapping
This commit is contained in:
+3
-1
@@ -64,7 +64,9 @@ export function NotificationDropdownItem({
|
||||
</span>
|
||||
<span className="text-xs text-muted-foreground">{timeAgo}</span>
|
||||
</div>
|
||||
<p className="text-sm text-foreground">{message}</p>
|
||||
<p className="text-sm text-foreground break-words break-all whitespace-normal">
|
||||
{message.length > 100 ? `${message.slice(0, 60)}...` : message}
|
||||
</p>
|
||||
</div>
|
||||
</DropdownMenuItem>
|
||||
)
|
||||
|
||||
@@ -322,7 +322,9 @@ function NotificationAlert({ notification, isFading, onHide }: NotificationAlert
|
||||
|
||||
<AlertDescription className="space-y-4">
|
||||
{/* Message with auto-expanding and max height */}
|
||||
<p className="max-h-[300px] overflow-hidden text-ellipsis">{message}</p>
|
||||
<p className="max-h-[300px] overflow-hidden break-words break-all whitespace-normal">
|
||||
{message}
|
||||
</p>
|
||||
|
||||
{/* Optional sections with copyable content */}
|
||||
{options?.sections?.map((section, index) => (
|
||||
|
||||
Reference in New Issue
Block a user