-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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 branches presentation on PR's list #20931
Conversation
Truncation is good, but I don't agree it making it bold again, I think it look better without bold. |
templates/shared/issuelist.tmpl
Outdated
{{/* inline to remove the spaces between spans */}} | ||
{{if ne .RepoID .PullRequest.BaseRepoID}}<span class="truncated-name">{{.PullRequest.BaseRepo.OwnerName}}</span>:{{end}}<span class="truncated-name">{{.PullRequest.BaseBranch}}</span> | ||
{{if ne .RepoID .PullRequest.BaseRepoID}}<span class="truncated-name dib vb">{{.PullRequest.BaseRepo.OwnerName}}</span>:{{end}}<span class="truncated-name dib vb">{{.PullRequest.BaseBranch}}</span> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
vb
does not appear to be a valid helper class.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
deleted
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure how this truncation is supposed to work, maybe mobile layout only? I think generally we want to set max-width
and use .ellipsis
to limit to a certain length, but unless there is a strong reason to truncate the branch name, I wouldn't do it.
Branch name holds important information and if we can get it to wrap, it would be better than just cutting it off like that.
@silverwind I will try to explain my decisions. Why bolded branch names?
Why truncated names?
About "max-width and use .ellipsis": if you know how to make it better please suggest your solution. I have a better experience in backend than in frontend. |
|
This is a hotfix for UI presentation of branches on PR's list (implemented in #19747)
Current representation (before fix)
New representation
Please include/backport (if possible) to v1.17.2 for example