Skip to content

Fix MR widget title vertical alignment when there is only one line

Daniel Tian requested to merge 381781-fix-mr-widget-title-alignment into master

What does this MR do and why?

For the MR widgets on the MR details page (the page you're on right now), if there's only a title and no sub-title (only one line of text), the title is not vertically aligned with the icon next to it, and is a few pixels too high:

ksnip_20221108-000155 ksnip_20221108-000229 ksnip_20221108-000250

This MR fixes it by aligning it vertically with the icon to the left of it:

ksnip_20221108-004109 ksnip_20221108-004437 ksnip_20221108-004524

Describe in detail what your merge request does and why.

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

MR acceptance checklist

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

Related to #381781 (closed)

Edited by Daniel Tian

Merge request reports