Fix text wrap alignment on MergeRequest diff viewer

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

I've noticed this for awhile now, but didn't get around to raise this until now. It happens whenever the line is long and doesn't fit within the current browser width.

I think it'd be great to fix this as it's not very readable and confusing. It make it look as though there is one more line above.

With narrow browser width (unexpected)

Screenshot_2025-02-19_at_4.35.10_pm

With wider browser width (expected)

Screenshot_2025-02-19_at_4.37.09_pm

What is expected

The line should show next to the line number without the empty space above even if the entire line doesn't fit within the current browser width.

Edited by 🤖 GitLab Bot 🤖