Skip to content

Commit 5012d77

Browse files
authored
Merge branch 'main' into bug_fix
2 parents f6efa01 + da41714 commit 5012d77

File tree

6 files changed

+15
-20
lines changed

6 files changed

+15
-20
lines changed

templates/repo/graph/commits.tmpl

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -33,14 +33,8 @@
3333
{{range $commit.Refs}}
3434
{{$refGroup := .RefGroup}}
3535
{{if eq $refGroup "pull"}}
36-
{{if $.HidePRRefs}}
37-
{{if (containGeneric $.SelectedBranches .Name) }}
38-
<a class="ui labelled icon button basic tiny" href="{{$.RepoLink}}/issues/{{.ShortName|PathEscape}}">
39-
{{svg "octicon-git-pull-request" 16 "mr-2"}}#{{.ShortName}}
40-
</a>
41-
{{end}}
42-
{{else}}
43-
<a class="ui labelled icon button basic tiny" href="{{$.RepoLink}}/issues/{{.ShortName|PathEscape}}">
36+
{{if or (not $.HidePRRefs) (containGeneric $.SelectedBranches .Name)}}
37+
<a class="ui labelled icon button basic tiny" href="{{$.RepoLink}}/pulls/{{.ShortName|PathEscape}}">
4438
{{svg "octicon-git-pull-request" 16 "mr-2"}}#{{.ShortName}}
4539
</a>
4640
{{end}}

templates/shared/issuelist.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
{{ $approvalCounts := .ApprovalCounts}}
33
{{range .Issues}}
44
<li class="item df py-3">
5-
<div class="issue-item-left df py-1">
5+
<div class="issue-item-left df">
66
{{if $.CanWriteIssuesOrPulls}}
77
<div class="ui checkbox issue-checkbox">
88
<input type="checkbox" data-issue-id={{.ID}}></input>

web_src/less/_base.less

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@
112112
--color-placeholder-text: #aaa;
113113
--color-editor-line-highlight: var(--color-primary-light-6);
114114
--color-project-board-bg: var(--color-secondary-light-4);
115+
--color-caret: var(--color-text-dark);
115116
/* backgrounds */
116117
--checkbox-mask-checked: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="-1 -1 18 18" width="16" height="16"><path fill-rule="evenodd" d="M13.78 4.22a.75.75 0 010 1.06l-7.25 7.25a.75.75 0 01-1.06 0L2.22 9.28a.75.75 0 011.06-1.06L6 10.94l6.72-6.72a.75.75 0 011.06 0z"></path></svg>');
117118
--checkbox-mask-indeterminate: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M2 7.75A.75.75 0 012.75 7h10a.75.75 0 010 1.5h-10A.75.75 0 012 7.75z"></path></svg>');
@@ -161,15 +162,12 @@ table {
161162
border-collapse: collapse;
162163
}
163164

164-
/* firefox scroll bars */
165-
166165
* {
167166
scrollbar-width: thin;
168167
scrollbar-color: var(--color-primary) transparent;
168+
caret-color: var(--color-caret);
169169
}
170170

171-
/* webkit scrollbars */
172-
173171
::-webkit-scrollbar {
174172
width: 10px;
175173
}
@@ -188,6 +186,10 @@ table {
188186
background: transparent;
189187
}
190188

189+
.CodeMirror-cursor {
190+
border-color: var(--color-caret) !important;
191+
}
192+
191193
::selection,
192194
.CodeMirror-selected {
193195
background: var(--color-primary-light-1) !important;

web_src/less/_editor.less

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,6 @@
44
border-color: var(--color-secondary);
55
font: 14px var(--fonts-monospace);
66

7-
.CodeMirror-cursor {
8-
border-left: 1px solid var(--color-input-text);
9-
}
10-
117
&.cm-s-default {
128
border-radius: 3px;
139
padding: 0 !important;

web_src/less/shared/issuelist.less

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313

1414
.issue-item-icon svg {
1515
margin-right: .75rem;
16+
margin-top: 1px;
1617
}
1718

1819
.issue-item-icons-right > * + * {
@@ -29,10 +30,11 @@
2930
font-size: 16px;
3031
min-width: 0;
3132
font-weight: 600;
33+
}
3234

33-
> * {
34-
vertical-align: middle;
35-
}
35+
.labels-list {
36+
position: relative;
37+
top: -1.5px;
3638
}
3739

3840
.issue-item-bottom-row {

web_src/less/themes/theme-arc-green.less

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@
108108
--color-placeholder-text: #6a737d;
109109
--color-editor-line-highlight: var(--color-primary-light-5);
110110
--color-project-board-bg: var(--color-secondary-light-2);
111+
--color-caret: var(--color-text); /* should ideally be --color-text-dark, see #15651 */
111112
}
112113

113114
::-webkit-calendar-picker-indicator {

0 commit comments

Comments
 (0)