Fix styling of multiple environments in merge request widget Closes #40610 See merge request gitlab-org/gitlab-ce!17663