Wrap legend when working with many traces

Found some issues on github related to this topic but couldn’t figured out if this was solved…

When I have too many traces, part of the legend gets truncated.

Is there any way to wrap the legend ? I am working with a horizontal legend

Thxs