Skip to content

Commit

Permalink
fix: prevent p-menu item text from wrapping (#415)
Browse files Browse the repository at this point in the history
  • Loading branch information
bastianjakobi authored Aug 22, 2024
1 parent 8aa60a0 commit 3a01639
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -76,11 +76,12 @@ const demoActions: Action[] = [
icon: PrimeIcons.TRASH,
},
{
label: 'Some action',
label: 'Some action that has a long text',
actionCallback: () => {
console.log(`you clicked 'Some action'`)
},
show: 'asOverflow',
icon: PrimeIcons.ADDRESS_BOOK
},
{
label: 'Other action',
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.p-menu-overlay {
width: auto !important;
}
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
@import './_fieldset';
@import './_float_label';
@import './_listbox';
@import './menu';
@import './_multiselect';
@import './_overlaypanel';
@import './_panel';
Expand Down

0 comments on commit 3a01639

Please sign in to comment.