Skip to content

Commit c315868

Browse files
Gustedsilverwindlunnytechknowlogick
authored
Make branch icon stand out more (#20726)
* Make branch icon stand out more - 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 within the span(or without for that matter), so simply manually patch this by adding `bottom: 1.px`. * Use svg * Apply suggestion Co-authored-by: silverwind <[email protected]> Co-authored-by: silverwind <[email protected]> Co-authored-by: Lunny Xiao <[email protected]> Co-authored-by: techknowlogick <[email protected]>
1 parent 3d76d60 commit c315868

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

templates/shared/issuelist.tmpl

+4-6
Original file line numberDiff line numberDiff line change
@@ -64,19 +64,17 @@
6464
{{$.locale.Tr .GetLastEventLabelFake $timeStr (.Poster.GetDisplayName | Escape) | Safe}}
6565
{{end}}
6666
{{if .IsPull}}
67-
<div class="branches">
67+
<div class="branches df ac">
6868
<div class="branch">
69-
<a class="bold" href="{{.PullRequest.BaseRepo.HTMLURL}}/src/branch/{{PathEscapeSegments .PullRequest.BaseBranch}}">
69+
<a href="{{.PullRequest.BaseRepo.HTMLURL}}/src/branch/{{PathEscapeSegments .PullRequest.BaseBranch}}">
7070
{{/* inline to remove the spaces between spans */}}
7171
{{if ne .RepoID .PullRequest.BaseRepoID}}<span class="truncated-name">{{.PullRequest.BaseRepo.OwnerName}}</span>:{{end}}<span class="truncated-name">{{.PullRequest.BaseBranch}}</span>
7272
</a>
7373
</div>
74-
75-
&laquo;
76-
74+
{{svg "gitea-double-chevron-left" 12 "mx-1"}}
7775
{{if .PullRequest.HeadRepo}}
7876
<div class="branch">
79-
<a class="bold" href="{{.PullRequest.HeadRepo.HTMLURL}}/src/branch/{{PathEscapeSegments .PullRequest.HeadBranch}}">
77+
<a href="{{.PullRequest.HeadRepo.HTMLURL}}/src/branch/{{PathEscapeSegments .PullRequest.HeadBranch}}">
8078
{{/* inline to remove the spaces between spans */}}
8179
{{if ne .RepoID .PullRequest.HeadRepoID}}<span class="truncated-name">{{.PullRequest.HeadRepo.OwnerName}}</span>:{{end}}<span class="truncated-name">{{.PullRequest.HeadBranch}}</span>
8280
</a>

web_src/less/shared/issuelist.less

+1-1
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)