Copy code button is hidden in a merge request comment code block when suggestions are present in the comment

How to reproduce

  1. Create a comment in a merge request which contains both a code suggestion and a code block.

Example comment:

```suggestion:-0+0
Example suggestion
```

```
Example code
```

Expectations

A code copy button should be shown when you hover over the code block.

Root cause

This is an edge case for a copy button because it's hidden if it's rendered within a .suggestions element. This element wraps the comment if you add a code suggestion.

Potential fix

We should adjust the logic how the copy button is hidden and refrain from using a .suggestions class.

Edited by 🤖 GitLab Bot 🤖