diff --git a/web_src/css/modules/animations.css b/web_src/css/modules/animations.css index 5bfc09077..788a4ed6e 100644 --- a/web_src/css/modules/animations.css +++ b/web_src/css/modules/animations.css @@ -13,6 +13,7 @@ opacity: 0.3; } +.btn.is-loading > *, .button.is-loading > * { opacity: 0; } diff --git a/web_src/js/features/repo-common.js b/web_src/js/features/repo-common.js index 2c5746c73..b750addb0 100644 --- a/web_src/js/features/repo-common.js +++ b/web_src/js/features/repo-common.js @@ -3,7 +3,7 @@ import {hideElem, showElem} from '../utils/dom.js'; import {POST} from '../modules/fetch.js'; async function getArchive($target, url, first) { - const dropdownBtn = $target[0].closest('.ui.dropdown.button'); + const dropdownBtn = $target[0].closest('.ui.dropdown.button') ?? $target[0].closest('.ui.dropdown.btn'); try { dropdownBtn.classList.add('is-loading');