Consider the following list with a sublist:
<ul> <li>ZZZ <ul class="mw-collapsible"> <li>A <li>B </ul> </ul>
It looks as in the screenshot I will attach.
Instead, to be terser, the [Collapse] button should appear in the same line as ZZZ to save valuable vertical space on the screen.