mirror of
				https://github.com/go-gitea/gitea
				synced 2025-11-04 05:18:25 +00: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