Skip to content

Commit 3d273e8

Browse files
committed
Fix download buttons on branches page
1 parent 1ad48f7 commit 3d273e8

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

web_src/css/modules/animations.css

+1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
opacity: 0.3;
1414
}
1515

16+
.btn.is-loading > *,
1617
.button.is-loading > * {
1718
opacity: 0;
1819
}

web_src/js/features/repo-common.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import {hideElem, showElem} from '../utils/dom.js';
33
import {POST} from '../modules/fetch.js';
44

55
async function getArchive($target, url, first) {
6-
const dropdownBtn = $target[0].closest('.ui.dropdown.button');
6+
const dropdownBtn = $target[0].closest('.ui.dropdown.button') ?? $target[0].closest('.ui.dropdown.btn');
77

88
try {
99
dropdownBtn.classList.add('is-loading');

0 commit comments

Comments
 (0)