Collapse button in Style dialog doesn't shrink dialog
OS: Windows 10 (10.0), Arch.: x86_64, MuseScore version (64-bit): 22.214.171.1241459983, revision: 465e7b6
A problem first reported in #291892: Style dialog: redesign layout of properties to reduce width. Open the Style window and click the collapse button.
Expected behaviour: The dialog should lose the list of styles and contract in width accordingly.
Actual result: The dialog stays the same width and the amount of grey space increases.