forked from gitea/gitea

Backport #27322 by @wxiaoguang Close #26730 1. The `diff-detail-box` was abused, it shouldn't be used for "DiffFileList/DiffFileTree". 2. Fix the sticky position for various screens.    Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>