Skip to content

Commit 8503456

Browse files
author
Gusted
authored
Make branch icon stand out more (#20726) (#20774)
- Backport #20726 - Currently the branch icon is "squashed" between the two branch names and feels a bit "amateur-ish" to my feeling(relative to other UI elements). - This patch tries to improve that by making the icon bigger and by adding some margin to not have a "squashed" icon. - This patch also includes a "fix", for some reason this symbol is not centering correctly. So apply allign-items: center to the top div
1 parent eacab6b commit 8503456

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

templates/shared/issuelist.tmpl

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -60,19 +60,17 @@
6060
{{$.i18n.Tr .GetLastEventLabelFake $timeStr (.Poster.GetDisplayName | Escape) | Safe}}
6161
{{end}}
6262
{{if .IsPull}}
63-
<div class="branches">
63+
<div class="branches df ac">
6464
<div class="branch">
65-
<a class="bold" href="{{.PullRequest.BaseRepo.HTMLURL}}/src/branch/{{PathEscapeSegments .PullRequest.BaseBranch}}">
65+
<a href="{{.PullRequest.BaseRepo.HTMLURL}}/src/branch/{{PathEscapeSegments .PullRequest.BaseBranch}}">
6666
{{/* inline to remove the spaces between spans */}}
6767
{{if ne .RepoID .PullRequest.BaseRepoID}}<span class="truncated-name">{{.PullRequest.BaseRepo.OwnerName}}</span>:{{end}}<span class="truncated-name">{{.PullRequest.BaseBranch}}</span>
6868
</a>
6969
</div>
70-
71-
&laquo;
72-
70+
{{svg "gitea-double-chevron-left" 12 "mx-1"}}
7371
{{if .PullRequest.HeadRepo}}
7472
<div class="branch">
75-
<a class="bold" href="{{.PullRequest.HeadRepo.HTMLURL}}/src/branch/{{PathEscapeSegments .PullRequest.HeadBranch}}">
73+
<a href="{{.PullRequest.HeadRepo.HTMLURL}}/src/branch/{{PathEscapeSegments .PullRequest.HeadBranch}}">
7674
{{/* inline to remove the spaces between spans */}}
7775
{{if ne .RepoID .PullRequest.HeadRepoID}}<span class="truncated-name">{{.PullRequest.HeadRepo.OwnerName}}</span>:{{end}}<span class="truncated-name">{{.PullRequest.HeadBranch}}</span>
7876
</a>

web_src/less/shared/issuelist.less

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@
122122

123123
.branches {
124124
display: inline-flex;
125-
padding: 0 6px;
125+
padding: 0 4px;
126126

127127
.branch {
128128
background-color: var(--color-secondary);

0 commit comments

Comments
 (0)