Width of dropdown menu - dynamic width

Is there a way to have the dropdown menu dynamically size to the longest list item? Right now the width is fixed at rem, em, px.

I saw this post and wanted to confirm that this is the best solution for Pro 2.2.5

$el .x-dropdown {width: auto;}
$el .sub-menu .x-anchor .x-anchor-text-primary {white-space: nowrap;}

Hi @wbgTHEMECO,

Thanks for reaching out.

Yes, it should work. I tried it too just make sure it’s added to the correct element as stated on that thread.

Thanks!

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.