Skip to content

Ensure that copy to clipboard button is visible

What does this MR do?

In !38421 (diffs), we introduced a few changes to diff file headers that prevented the "Copy to clipboard" button from showing up when the file path is too long to be fully displayed. This fixes it by truncating the file path to let some room for the button.

Screenshots (strongly suggested)

Before After
Screen_Shot_2020-10-29_at_11.19.22_AM Screen_Shot_2020-10-29_at_11.18.56_AM

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Security

If this MR contains changes to processing or storing of credentials or tokens, authorization and authentication methods and other items described in the security review guidelines:

  • Label as security and @ mention @gitlab-com/gl-security/appsec
  • The MR includes necessary changes to maintain consistency between UI, API, email, or other methods
  • Security reports checked/validated by a reviewer from the AppSec team
Edited by Paul Gascou-Vaillancourt

Merge request reports