Skip to content

Resolve "Follow up to "Styling of the MR widget's info and pipeline sections""

Paul Slaughter requested to merge 49110-update-mr-widget-styles into master

What does this MR do?

This MR resolves the UX issues identified in #49110 (closed):

  • Truncate long branch and environment names and show tooltip containing full text.
  • Change "commits behind" text to not show long branch names and link to target branch commits.

Notes about this MR:

  • Here's the EE Port (gitlab-ee!6921).
  • Truncated names actually show 19 characters and then the ellipsis (i.e., 12.5em). Any more caused the line to wrap, which I think is against the intention of this issue.
  • A custom reusable component called tooltip-on-truncate was made to handle conditionally rendering the tooltip if the text has been truncated or not.

What are the relevant issue numbers?

Closes #49110 (closed)

Screenshots

Screen_Shot_2018-08-15_at_10.26.02_PM

Does this MR meet the acceptance criteria?

Edited by Paul Slaughter

Merge request reports