Skip to content

Commit 8c05c77

Browse files
committed
fix(Item): flex shrink
1 parent 5f6630b commit 8c05c77

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/components/content/Item/Item.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,8 @@ const ItemElement = tasty({
214214
'': 'auto auto',
215215
'with-description-block': 'auto auto auto',
216216
},
217+
// Prevent items from shrinking inside vertical flex layouts (Menu, ListBox, etc)
218+
flexShrink: 0,
217219
position: 'relative',
218220
padding: 0,
219221
margin: 0,

0 commit comments

Comments
 (0)