Match suggestion diff corners to its header
What does this MR do and why?
Fixes the bottom corners of the code suggestion table in merge request comments:
- The bottom-left corner let the last line's background poke out past the rounded border.
- The bottom corners used the 7px file-frame radius, while the "Suggested change" header above uses 4px, so the box was rounded unevenly.
The table now uses $gl-border-radius-base for its bottom corners and clips its cells with overflow: clip, so neither the added (green) nor deleted (red) line backgrounds escape the corners. The cells no longer round themselves. The .diff-file-only radius override in diffs.scss is removed because the radius now applies everywhere a suggestion renders, including Rapid Diffs.
References
None.
Screenshots or screen recordings
| Before | After |
|---|---|
![]() |
![]() |
How to set up and validate locally
- Open a merge request with a diff and add a comment on a line with a suggestion (
suggestion:-0+0block) that changes the line. - On the Overview tab, check the "Suggested change" box: the bottom corners match the header's top corners, and no green or red background shows past the border.
- Check the same comment on the Changes tab, with and without Rapid Diffs.
- Optionally, add a suggestion that only deletes lines, and one with a very long line, and check the corners again.
I checked this in Chromium in light and dark mode, on Overview, the legacy Changes tab, and Rapid Diffs. I didn't check Firefox or Safari.
MR acceptance checklist
Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

