Skip to content

Resolve project filter dropdown overflowing when a long name is selected

What does this MR do and why?

This MR resolves the project filter dropdown overflowing when a project with a long name is selected for #359845 (closed).

It also makes the following minor changes:

  • Adds truncation to the selected item text.
  • Resolves the dropdown chevron shrinking on long names.
  • Updates project dropdown filter specs.

The dropdown is shared by:

  • Group > Security & Compliance > Compliance report
  • Group > Analytics > Value stream
  • Group > Analytics > Productivity

Screenshots or screen recordings

Group > Security & Compliance > Compliance report

Before After
image image

Group > Analytics > Value stream

Before After
image image

Group > Analytics > Productivity

Before After
image image

How to set up and validate locally

  1. You need a GitLab Ultimate license.
  2. Checkout this branch.
  3. In your test group, create a project with the name Really long naaaaaaaaaaaaaaaaaaaaaaaaaaaaaame.
  4. In your test group, view the dashboard and select the newly created project to verify that the change works:
    • Group > Security & Compliance > Compliance report
    • Group > Analytics > Value stream
    • Group > Analytics > Productivity

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Jiaan Louw

Merge request reports