Improve detecting empty files (#31332)

Co-authored-by: silverwind <me@silverwind.io>
This commit is contained in:
wxiaoguang
2024-06-13 09:06:46 +08:00
committed by GitHub
parent 7115dce773
commit 47ca61d8ba
11 changed files with 29 additions and 13 deletions
+2
View File
@@ -32,6 +32,8 @@
<div class="file-view code-view unicode-escaped">
{{if .IsFileTooLarge}}
{{template "shared/filetoolarge" dict "RawFileLink" .RawFileLink}}
{{else if not .FileSize}}
{{template "shared/fileisempty"}}
{{else}}
<table>
<tbody>