Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix blame line alignment #13542

Merged
merged 3 commits into from
Nov 13, 2020
Merged

Conversation

silverwind
Copy link
Member

@silverwind silverwind commented Nov 13, 2020

We can't wrap code in blame because it's essentially two tables side-by-side which will misalign when one line gets larger.

Fixes: #13540
Regressed by: #13415

Before:
Screen Shot 2020-11-13 at 14 30 24

After:
Screen Shot 2020-11-13 at 14 27 40

We can't wrap code in blame because it's essentially two tables
side-by-side which will misalign them when one line gets larger.

Fixes: go-gitea#13540
Regressed by: go-gitea#13415
@6543 6543 added the topic/ui Change the appearance of the Gitea UI label Nov 13, 2020
Copy link
Member

@6543 6543 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Again ...

@GiteaBot GiteaBot added the lgtm/need 1 This PR needs approval from one additional maintainer to be merged. label Nov 13, 2020
@silverwind
Copy link
Member Author

Yeah blame is unfortunately prone to break as it's stuffing everything into three table cells that can never align with each other. It needs to be refactored to have one <tr> per line.

@6543 6543 added this to the 1.14.0 milestone Nov 13, 2020
@6543 6543 added the type/bug label Nov 13, 2020
@GiteaBot GiteaBot added lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. and removed lgtm/need 1 This PR needs approval from one additional maintainer to be merged. labels Nov 13, 2020
@techknowlogick
Copy link
Member

🚀

@techknowlogick techknowlogick merged commit db16275 into go-gitea:master Nov 13, 2020
@silverwind silverwind deleted the fix-blame-wrap branch November 13, 2020 19:32
@go-gitea go-gitea locked and limited conversation to collaborators Dec 14, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. topic/ui Change the appearance of the Gitea UI type/bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Blame misalignment on wrapped lines
5 participants