17720/17721 invalid project link in timelines table and cut off modal close icon

https://community.openproject.org/work_packages/17720
https://community.openproject.org/work_packages/17721
@ulferts It's the former: It's a question of ordering the CSS rules.