mirror of
				https://github.com/go-gitea/gitea
				synced 2025-10-31 03:18:24 +00:00 
			
		
		
		
	Fix a UI error when folding a file content in a commit view (#17446)
This commit is contained in:
		| @@ -131,9 +131,8 @@ export function initRepoCodeView() { | ||||
|   } | ||||
|   $(document).on('click', '.fold-file', ({currentTarget}) => { | ||||
|     const box = currentTarget.closest('.file-content'); | ||||
|     const chevron = currentTarget.querySelector('a.chevron'); | ||||
|     const folded = box.dataset.folded !== 'true'; | ||||
|     chevron.innerHTML = svg(`octicon-chevron-${folded ? 'right' : 'down'}`, 18); | ||||
|     currentTarget.innerHTML = svg(`octicon-chevron-${folded ? 'right' : 'down'}`, 18); | ||||
|     box.dataset.folded = String(folded); | ||||
|   }); | ||||
|   $(document).on('click', '.blob-excerpt', async ({currentTarget}) => { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user