forked from gitea/gitea

Backport #26133 by @wxiaoguang Close #26104 . Only a quick fix, the UI is not perfect. Before: <details>   </details> After: <details>   </details> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>