diff options
author | Kerwin Bryant <kerwin612@qq.com> | 2025-04-15 22:35:22 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-04-15 22:35:22 +0800 |
commit | 2b99a58f540a15a04b48cba507ace8abf3c52014 (patch) | |
tree | aa14c105285455352ba37ed386f3cfab83b4eccf /web_src/js/features/file-fold.ts | |
parent | 18a673bad1d036502baca4491a16679692c42320 (diff) | |
download | gitea-2b99a58f540a15a04b48cba507ace8abf3c52014.tar.gz gitea-2b99a58f540a15a04b48cba507ace8abf3c52014.zip |
Mark parent directory as viewed when all files are viewed (#33958)
Fix #25644
---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Diffstat (limited to 'web_src/js/features/file-fold.ts')
-rw-r--r-- | web_src/js/features/file-fold.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/web_src/js/features/file-fold.ts b/web_src/js/features/file-fold.ts index 19950d9b9f..74b36c0096 100644 --- a/web_src/js/features/file-fold.ts +++ b/web_src/js/features/file-fold.ts @@ -5,7 +5,7 @@ import {svg} from '../svg.ts'; // The fold arrow is the icon displayed on the upper left of the file box, especially intended for components having the 'fold-file' class. // The file content box is the box that should be hidden or shown, especially intended for components having the 'file-content' class. // -export function setFileFolding(fileContentBox: HTMLElement, foldArrow: HTMLElement, newFold: boolean) { +export function setFileFolding(fileContentBox: Element, foldArrow: HTMLElement, newFold: boolean) { foldArrow.innerHTML = svg(`octicon-chevron-${newFold ? 'right' : 'down'}`, 18); fileContentBox.setAttribute('data-folded', String(newFold)); if (newFold && fileContentBox.getBoundingClientRect().top < 0) { |