Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .changeset/chilled-onions-burn.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@heroui/toast": patch
"@heroui/theme": patch
---

fix long text in toast (#5552)
8 changes: 4 additions & 4 deletions packages/core/theme/src/components/toast.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,12 +73,12 @@ const toast = tv({
"will-change-transform",
"backface-visibility-hidden",
],
wrapper: ["flex flex-col gap-y-0"],
title: ["text-sm", "me-4", "font-medium", "text-foreground"],
description: ["text-sm", "me-4", "text-default-500"],
wrapper: ["flex flex-col gap-y-0 min-w-0"],
title: ["text-sm", "me-4", "font-medium", "text-foreground", "truncate"],
description: ["text-sm", "me-4", "text-default-500", "break-words"],
icon: ["w-6 h-6 flex-none fill-current"],
loadingComponent: ["w-6 h-6 flex-none fill-current"],
content: ["flex flex-grow flex-row gap-x-4 items-center relative"],
content: ["flex flex-grow flex-row gap-x-4 items-center relative min-w-0"],
progressTrack: ["absolute inset-0 pointer-events-none bg-transparent overflow-hidden"],
progressIndicator: ["h-full bg-default-400 opacity-20"],
motionDiv: [
Expand Down
Loading