diff options
author | silverwind <me@silverwind.io> | 2024-03-27 21:05:49 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-27 21:05:49 +0100 |
commit | c85619b82d19a928cb219eba3f38473928b29b0c (patch) | |
tree | 4cdddb4f1093488dccb41d79d737203ca3eecf71 /web_src | |
parent | 1ad48f781eb0681561b083b49dfeff84ba51f2fe (diff) | |
download | gitea-c85619b82d19a928cb219eba3f38473928b29b0c.tar.gz gitea-c85619b82d19a928cb219eba3f38473928b29b0c.zip |
Fix download buttons on branches page (#30147)
Fixes https://github.com/go-gitea/gitea/issues/30143, regression from
https://github.com/go-gitea/gitea/pull/29920.
We have `.button` on the repo page, but on the branch page it's a
`.btn`. Eventually we should find a solution to have a single button
class but until then this solution should be acceptable.
Diffstat (limited to 'web_src')
-rw-r--r-- | web_src/css/modules/animations.css | 1 | ||||
-rw-r--r-- | web_src/js/features/repo-common.js | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/web_src/css/modules/animations.css b/web_src/css/modules/animations.css index 5bfc090773..788a4ed6ed 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 2c5746c738..b750addb07 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'); |