Skip to content

Commit ddfb729

Browse files
authored
Clone panel fixes (#15436)
- Use <button> over <div> for a button - Fix absent border-right on wiki - Fix absent border-radius on wiki
1 parent 6ef62e3 commit ddfb729

File tree

2 files changed

+15
-8
lines changed

2 files changed

+15
-8
lines changed

templates/repo/home.tmpl

+2-2
Original file line numberDiff line numberDiff line change
@@ -110,13 +110,13 @@
110110
{{if eq $n 0}}
111111
<div class="ui action tiny input" id="clone-panel">
112112
{{template "repo/clone_buttons" .}}
113-
<div class="ui basic jump dropdown icon button poping up" data-content="{{.i18n.Tr "repo.download_archive"}}" data-variation="tiny inverted" data-position="top right">
113+
<button id="download-btn" class="ui basic jump dropdown icon button poping up" data-content="{{.i18n.Tr "repo.download_archive"}}" data-variation="tiny inverted" data-position="top right">
114114
{{svg "octicon-download"}}
115115
<div class="menu">
116116
<a class="item archive-link" data-url="{{$.RepoLink}}/archive/{{EscapePound $.BranchName}}.zip">{{svg "octicon-file-zip"}}&nbsp;ZIP</a>
117117
<a class="item archive-link" data-url="{{$.RepoLink}}/archive/{{EscapePound $.BranchName}}.tar.gz">{{svg "octicon-file-zip"}}&nbsp;TAR.GZ</a>
118118
</div>
119-
</div>
119+
</button>
120120
</div>
121121
{{end}}
122122
</div>

web_src/less/_repository.less

+13-6
Original file line numberDiff line numberDiff line change
@@ -201,18 +201,25 @@
201201
.clone.button {
202202
font-size: 13px;
203203
padding: 7.5px 5px;
204-
205-
&:first-child {
206-
border-radius: var(--border-radius) 0 0 var(--border-radius);
207-
}
208204
}
209205

210206
#repo-clone-https,
211-
#repo-clone-ssh,
212-
#clipboard-btn {
207+
#repo-clone-ssh {
213208
border-right: none;
214209
}
215210

211+
#download-btn {
212+
border-left: none;
213+
}
214+
215+
button:first-of-type {
216+
border-radius: var(--border-radius) 0 0 var(--border-radius) !important;
217+
}
218+
219+
button:last-of-type {
220+
border-radius: 0 var(--border-radius) var(--border-radius) 0 !important;
221+
}
222+
216223
.icon.button {
217224
padding: 0 10px;
218225
}

0 commit comments

Comments
 (0)