Truncate branch name in cherrypick form

Summary

Branch names can cause the button to overflow the modal used when cherry picking a commit.

Steps to reproduce

  1. Create a branch with a long name, such as 348199-quarantine-Plan-Milestones-Group-milestone-behaves-like-milestone-assigned-to-existing-issue-is-assigned-to-an-existing-issue
  2. Open a commit
  3. Options > Cherry pick
  4. Select your long name branch (search if needed)

Example Project

gitlab

What is the current bug behavior?

Button expands past the modal boundary

What is the expected correct behavior?

Button is constrained within the modal body

Relevant logs and/or screenshots

image

Possible fixes