From 3d273e89a975a830bc86bdcf51ed8a2fb154ddc9 Mon Sep 17 00:00:00 2001 From: silverwind Date: Wed, 27 Mar 2024 20:07:42 +0100 Subject: [PATCH] Fix download buttons on branches page --- web_src/css/modules/animations.css | 1 + web_src/js/features/repo-common.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/web_src/css/modules/animations.css b/web_src/css/modules/animations.css index 5bfc090773c2d..788a4ed6edb27 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 2c5746c73805a..b750addb07a2c 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');