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

Improve commit record's ui in comment list #26619

Merged
merged 13 commits into from
Mar 14, 2024
10 changes: 5 additions & 5 deletions templates/repo/issue/view_content/comments.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@
{{if eq .RefAction 3}}</del>{{end}}

<div class="detail">
<span class="text grey muted-links"><a href="{{.RefIssueLink}}"><b>{{.RefIssueTitle}}</b> {{.RefIssueIdent}}</a></span>
<span class="text grey muted-links gt-df"><a href="{{.RefIssueLink}}"><b>{{.RefIssueTitle}}</b> {{.RefIssueIdent}}</a></span>
</div>
</div>
{{else if eq .Type 4}}
Expand All @@ -169,7 +169,7 @@
</span>
<div class="detail">
{{svg "octicon-git-commit"}}
<span class="text grey muted-links">{{.Content | Str2html}}</span>
<span class="text grey muted-links gt-df">{{.Content | Str2html}}</span>
</div>
</div>
{{else if eq .Type 7}}
Expand Down Expand Up @@ -342,7 +342,7 @@
{{if .DependentIssue}}
<div class="detail">
{{svg "octicon-plus"}}
<span class="text grey muted-links">
<span class="text grey muted-links gt-df">
<a href="{{.DependentIssue.Link}}">
{{if eq .DependentIssue.RepoID .Issue.RepoID}}
#{{.DependentIssue.Index}} {{.DependentIssue.Title}}
Expand All @@ -364,8 +364,8 @@
</span>
{{if .DependentIssue}}
<div class="detail">
<span class="text grey muted-links">{{svg "octicon-trash"}}</span>
<span class="text grey muted-links">
<span class="text grey muted-links gt-df">{{svg "octicon-trash"}}</span>
<span class="text grey muted-links gt-df">
silverwind marked this conversation as resolved.
Show resolved Hide resolved
<a href="{{.DependentIssue.Link}}">
{{if eq .DependentIssue.RepoID .Issue.RepoID}}
#{{.DependentIssue.Index}} {{.DependentIssue.Title}}
Expand Down
3 changes: 3 additions & 0 deletions web_src/css/repo.css
Original file line number Diff line number Diff line change
Expand Up @@ -1142,6 +1142,9 @@
.repository.view.issue .comment-list .event .detail {
margin-top: 4px;
margin-left: 14px;
display: flex;
align-items: center;
gap: 0.25rem;
silverwind marked this conversation as resolved.
Show resolved Hide resolved
}

.repository.view.issue .comment-list .event .detail .svg {
Expand Down