Line numbers over 999 are truncated when C++ file is displayed with Blame
Summary
Displaying a C++ file where there are > 999 lines, the display of the line number is truncated on the right-side for lines beyond 999 when the Blame
display is used.
Steps to reproduce
- View a C++ file with over 999 lines via a browser in GitLab (I tried Brave, Firefox and Edge)
- Click the
Blame
button - Scroll to line 1000
- Observe that line 1000 seems to be rendered as "100", similarly for all following lines.
Example Project
See:
https://gitlab.com/undyau/many-lines-bug/-/blame/main/README.cpp
What is the current bug behavior?
Displaying a file where there are > 999 lines, the display of the line number is truncated on the right-side for lines beyond 999 when the Blame
display is used.
What is the expected correct behavior?
Displaying a file where there are > 999 lines, the display of the line number is not truncated on the right-side for lines beyond 999 when the Blame
display is used.
Relevant logs and/or screenshots
See example https://gitlab.com/undyau/many-lines-bug/-/blame/main/README.cpp
Output of checks
This bug happens on gitlab.com (and also on our in-house installation which is up to date).
Results of GitLab environment info
Results of GitLab application Check
Possible fixes
The only useful info I can give is that the problem didn't appear with shorter lines in a plain text file, so either the line length or the rendering for C++ is relevant to the issue.