fix(theme): dropdown-item has no ellipsis when it has a width and desc (#5638)

* fix(theme): dropdown-item where the text was too long without an ellipsis when there was a desc

* chore(changeset): update message

---------

Co-authored-by: WK <wingkwong.code@gmail.com>
This commit is contained in:
doki- 2025-08-30 11:01:58 +08:00 committed by GitHub
parent d90ac57bc5
commit 3ba7d29848
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 7 additions and 2 deletions

View File

@ -0,0 +1,5 @@
---
"@heroui/theme": patch
---
fix after setting the maximum width at DropdownMenu, if there is a description, an ellipsis will not appear if the text is too long (#5564)

View File

@ -70,8 +70,8 @@ const menuItem = tv({
...dataFocusVisibleClasses,
"data-[focus-visible=true]:dark:ring-offset-background-content1",
],
wrapper: "w-full flex flex-col items-start justify-center",
title: "flex-1 text-small font-normal",
wrapper: "w-full flex flex-col items-start justify-center min-w-0",
title: "flex-1 text-small font-normal w-full",
description: ["w-full", "text-tiny", "text-foreground-500", "group-hover:text-current"],
selectedIcon: ["text-inherit", "w-3", "h-3", "shrink-0"],
shortcut: [