mirror of
https://gitcode.com/gitea/gitea.git
synced 2025-05-25 11:07:56 +08:00
Fix the overflow style for "Hide all checks" (#27932)
Fix #27928 --------- Co-authored-by: silverwind <me@silverwind.io>
This commit is contained in:
@ -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 = '');
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user