[Fix] 7782 Long target version names destroy layout

[``* `#7782` Long target version names destroy layout``](https://www.openproject.org/work_packages/7782)