Fix alignment of blob controls when on a mobile layout

What does this MR do and why?

  • removes the left margin trick from the open MRs badge
  • uses flex property for blob controls to align them to the right side

References

Screenshots or screen recordings

Viewport size Before After
xs (<576px) Screenshot_2025-04-15_at_19.47.29 Screenshot_2025-04-15_at_19.46.04
sm (>=576px) Screenshot_2025-04-15_at_19.47.05 Screenshot_2025-04-15_at_19.46.17
Viewport size Before After
xs (<576px) Screenshot_2025-04-15_at_19.47.20 Screenshot_2025-04-15_at_19.45.44
sm (>=576px) Screenshot_2025-04-15_at_19.46.58 Screenshot_2025-04-15_at_19.46.35

How to set up and validate locally

  1. In rails console enable the feature flag
    Feature.enable(:blob_overflow_menu)
  2. Open Project / Code /Repository and choose a file
  3. Make sure your viewport is around 500px wide or less. Make sure the blob controls align to the right.
  4. Open a file that has opened merge requests badge and verify blob controls there are also alight to the right.

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.

Related to #535480 (closed)

Edited by Paulina Sedlak-Jakubowska

Merge request reports

Loading