[Fix] 7943 Long target version names destroy layout

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