How can i get multiple rows to work inside Antd Submenu? Only one row works fine, but as soon as i select multiple, ellipsis is not shown at all and text is still in one row.
<SubMenu
title={
<Typography.Paragraph ellipsis={{ rows: 2, tooltip: { title: 'Long title', placement: 'right' } }}>
{'Long title'}
</Typography.Paragraph>
}
>
{submenuItems}
)}
</SubMenu>
2
Answers
Using the following css, everything looks as intended
Yes it’s possible. You just need to use
style
andlineBreak
css prop: