diff options
author | wxiaoguang <wxiaoguang@gmail.com> | 2023-11-08 02:53:35 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-07 18:53:35 +0000 |
commit | 10a6ebb3fd9e44ef044ec010b235ca2bf9b456b4 (patch) | |
tree | 2028fd42d1693f792df7c9980e67993e5a8923f3 /web_src/js/features | |
parent | e80f446d3a0e7f0989dedeb88b09473ad15657a0 (diff) | |
download | gitea-10a6ebb3fd9e44ef044ec010b235ca2bf9b456b4.tar.gz gitea-10a6ebb3fd9e44ef044ec010b235ca2bf9b456b4.zip |
Fix the overflow style for "Hide all checks" (#27932)
Fix #27928
---------
Co-authored-by: silverwind <me@silverwind.io>
Diffstat (limited to 'web_src/js/features')
-rw-r--r-- | web_src/js/features/repo-issue-pr-status.js | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/web_src/js/features/repo-issue-pr-status.js b/web_src/js/features/repo-issue-pr-status.js index 3010615706..7890b9c48d 100644 --- a/web_src/js/features/repo-issue-pr-status.js +++ b/web_src/js/features/repo-issue-pr-status.js @@ -4,9 +4,7 @@ export function initRepoPullRequestCommitStatus() { const list = panel.querySelector('.commit-status-list'); btn.addEventListener('click', () => { list.style.maxHeight = list.style.maxHeight ? '' : '0px'; // toggle - list.style.overflow = 'hidden'; // hide scrollbar when hiding btn.textContent = btn.getAttribute(list.style.maxHeight ? 'data-show-all' : 'data-hide-all'); }); - list.addEventListener('animationend', () => list.style.overflow = ''); } } |