Skip to content

Move link icon to comment on a file line from HAML to CSS (repository)

Jacques Erasmus requested to merge move-link-icon-to-css into master

What does this MR do?

When viewing large files via the blob viewer, an SVG image is generated for each line to display a link icon, this causes a significant bloat in file size.

This MR moves the link icon from haml to CSS.

Example of a large file: https://staging.gitlab.com/gpt/large_projects/gitlabhq1/blob/master/fixtures/emojis/index.json

Screenshots (strongly suggested)

Before (13.46MB)

Screenshot_2021-03-18_at_16.42.23

Screenshot_2021-03-18_at_16.52.53

After (7.29MB)

Screenshot_2021-03-18_at_16.44.06

Screenshot_2021-03-18_at_17.02.56

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Edited by André Luís

Merge request reports