Merge Request sidebar adapts to long file paths

Problem to solve

Applications with long file paths (for example, Java applications which often times are at least 6-level deep) cause the MR sidebar to show content that is not useful. The file name cannot be seen, for example:

Screen_Shot_2562-01-03_at_12.15.07

Proposal

When long file paths are present, use ellipsis to shorten/hide part of the path and show the containing folder.

image

Edited by Daniel Gruesso