Skip to content

Commit f97240a

Browse files
authored
Merge branch 'main' into lunny/fix_inactive_clean_error
2 parents ae16f8c + d11f8d2 commit f97240a

File tree

9 files changed

+11
-17
lines changed

9 files changed

+11
-17
lines changed

options/locale/locale_en-US.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ copy_url = Copy URL
104104
copy_hash = Copy hash
105105
copy_content = Copy content
106106
copy_branch = Copy branch name
107+
copy_path = Copy path
107108
copy_success = Copied!
108109
copy_error = Copy failed
109110
copy_type_unsupported = This file type cannot be copied

templates/repo/diff/box.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@
130130
</div>
131131
<span class="file tw-flex tw-items-center tw-font-mono tw-flex-1"><a class="muted file-link" title="{{if $file.IsRenamed}}{{$file.OldName}} → {{end}}{{$file.Name}}" href="#diff-{{$file.NameHash}}">{{if $file.IsRenamed}}{{$file.OldName}} → {{end}}{{$file.Name}}</a>
132132
{{if .IsLFSFile}} ({{ctx.Locale.Tr "repo.stored_lfs"}}){{end}}
133-
<button class="btn interact-fg tw-p-2" data-clipboard-text="{{$file.Name}}">{{svg "octicon-copy" 14}}</button>
133+
<button class="btn interact-fg tw-p-2" data-clipboard-text="{{$file.Name}}" data-tooltip-content="{{ctx.Locale.Tr "copy_path"}}">{{svg "octicon-copy" 14}}</button>
134134
{{if $file.IsGenerated}}
135135
<span class="ui label">{{ctx.Locale.Tr "repo.diff.generated"}}</span>
136136
{{end}}

templates/repo/home.tmpl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@
106106
<span class="breadcrumb-divider">/</span>
107107
{{- if eq $i $l -}}
108108
<span class="active section" title="{{$v}}">{{$v}}</span>
109+
<button class="btn interact-fg tw-mx-1" data-clipboard-text="{{$.TreePath}}" data-tooltip-content="{{ctx.Locale.Tr "copy_path"}}">{{svg "octicon-copy" 14}}</button>
109110
{{- else -}}
110111
{{$p := index $.Paths $i}}<span class="section"><a href="{{$.BranchLink}}/{{PathEscapeSegments $p}}" title="{{$v}}">{{$v}}</a></span>
111112
{{- end -}}

templates/repo/issue/sidebar/label_list.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
{{$previousExclusiveScope = $exclusiveScope}}
2828
{{template "repo/issue/sidebar/label_list_item" dict "Label" .}}
2929
{{end}}
30-
<div class="divider"></div>
30+
{{if and $data.RepoLabels $data.OrgLabels}}<div class="divider"></div>{{end}}
3131
{{$previousExclusiveScope = "_no_scope"}}
3232
{{range $data.OrgLabels}}
3333
{{$exclusiveScope := .ExclusiveScope}}

templates/repo/issue/sidebar/milestone_list.tmpl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,16 +22,15 @@
2222
<div class="item clear-selection">{{ctx.Locale.Tr "repo.issues.new.clear_milestone"}}</div>
2323
<div class="scrolling menu">
2424
{{if $data.OpenMilestones}}
25-
<div class="divider"></div>
2625
<div class="header">{{ctx.Locale.Tr "repo.issues.new.open_milestone"}}</div>
2726
{{range $data.OpenMilestones}}
2827
<a class="item muted" data-value="{{.ID}}" href="{{$pageMeta.RepoLink}}/issues?milestone={{.ID}}">
2928
{{svg "octicon-milestone" 18}} {{.Name}}
3029
</a>
3130
{{end}}
3231
{{end}}
32+
{{if and $data.OpenMilestones $data.ClosedMilestones}}<div class="divider"></div>{{end}}
3333
{{if $data.ClosedMilestones}}
34-
<div class="divider"></div>
3534
<div class="header">{{ctx.Locale.Tr "repo.issues.new.closed_milestone"}}</div>
3635
{{range $data.ClosedMilestones}}
3736
<a class="item muted" data-value="{{.ID}}" href="{{$pageMeta.RepoLink}}/issues?milestone={{.ID}}">

templates/repo/issue/sidebar/project_list.tmpl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,16 +20,15 @@
2020
<div class="item clear-selection">{{ctx.Locale.Tr "repo.issues.new.clear_projects"}}</div>
2121
<div class="scrolling menu">
2222
{{if $data.OpenProjects}}
23-
<div class="divider"></div>
2423
<div class="header">{{ctx.Locale.Tr "repo.issues.new.open_projects"}}</div>
2524
{{range $data.OpenProjects}}
2625
<a class="item muted" data-value="{{.ID}}" href="{{.Link ctx}}">
2726
{{svg .IconName 18}} {{.Title}}
2827
</a>
2928
{{end}}
3029
{{end}}
30+
{{if and $data.OpenProjects $data.ClosedProjects}}<div class="divider"></div>{{end}}
3131
{{if $data.ClosedProjects}}
32-
<div class="divider"></div>
3332
<div class="header">{{ctx.Locale.Tr "repo.issues.new.closed_projects"}}</div>
3433
{{range $data.ClosedProjects}}
3534
<a class="item muted" data-value="{{.ID}}" href="{{.Link ctx}}">

templates/repo/issue/sidebar/reviewer_list.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
<input type="text" placeholder="{{ctx.Locale.Tr "repo.issues.filter_reviewers"}}">
1818
</div>
1919
{{end}}
20-
<div class="scrolling menu">
20+
<div class="scrolling menu flex-items-menu">
2121
{{range $data.Reviewers}}
2222
{{if .User}}
2323
<a class="item muted {{if .Requested}}checked{{end}}" href="{{.User.HomeLink}}" data-value="{{.ItemID}}" data-can-change="{{.CanChange}}"

web_src/css/base.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1397,6 +1397,10 @@ table th[data-sortt-desc] .svg {
13971397
gap: .5rem;
13981398
min-width: 0;
13991399
}
1400+
.ui.dropdown .menu.flex-items-menu > .item img,
1401+
.ui.dropdown .menu.flex-items-menu > .item svg {
1402+
margin: 0; /* use gap, but not margin */
1403+
}
14001404

14011405
.ui.dropdown.ellipsis-items-nowrap > .text {
14021406
overflow: hidden;

web_src/css/repo.css

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,6 @@
5353
.issue-sidebar-combo .ui.dropdown .item:not(.checked) .item-check-mark {
5454
visibility: hidden;
5555
}
56-
/* ideally, we should move these styles to ".ui.dropdown .menu.flex-items-menu > .item ...", could be done later */
57-
.issue-sidebar-combo .ui.dropdown .menu > .item > img,
58-
.issue-sidebar-combo .ui.dropdown .menu > .item > svg {
59-
margin: 0;
60-
}
6156

6257
.issue-content-right .dropdown > .menu {
6358
max-width: 270px;
@@ -79,11 +74,6 @@
7974
}
8075
}
8176

82-
.repository .issue-content-right .filter.menu {
83-
max-height: 500px;
84-
overflow-x: auto;
85-
}
86-
8777
.repository .filter.menu.labels .label-filter .menu .info {
8878
display: inline-block;
8979
padding: 0.5rem 0;

0 commit comments

Comments
 (0)