Add compare tag dropdown to releases page (#15695)

* Add compare tag dropdown to releases page

* Change defaults to be more intuitive and remove unneeded option

* Fix to select branch on releases page

Co-authored-by: Jonathan Tran <jon@allspice.io>
Co-authored-by: Kyle D <kdumontnu@gmail.com>
This commit is contained in:
Jonathan Tran 2021-05-03 13:27:48 -04:00 committed by GitHub
parent 1b017fe7ca
commit 5e047b9bd7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 78 additions and 36 deletions

View file

@ -781,7 +781,8 @@ async function initRepository() {
});
// File list and commits
if ($('.repository.file.list').length > 0 || ('.repository.commits').length > 0) {
if ($('.repository.file.list').length > 0 ||
$('.repository.commits').length > 0 || $('.repository.release').length > 0) {
initFilterBranchTagDropdown('.choose.reference .dropdown');
}

View file

@ -1803,6 +1803,10 @@
text-align: right;
position: relative;
.label {
margin-right: 0;
}
.tag:not(.icon) {
display: block;
margin-top: 15px;
@ -1812,6 +1816,14 @@
display: block;
margin-top: 10px;
}
.choose {
margin-top: 15px;
.button {
margin-right: 0;
}
}
}
.detail {
@ -1855,7 +1867,7 @@
width: 9px;
height: 9px;
background-color: #ddd;
z-index: 999;
z-index: 9;
position: absolute;
display: block;
left: -5px;