From e719bf8ead149c913b59279fb70688ad8f8d2573 Mon Sep 17 00:00:00 2001 From: Giteabot Date: Thu, 28 Sep 2023 21:27:13 +0800 Subject: [PATCH] Fix review UI (#27322) (#27331) 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. ![image](https://github.com/go-gitea/gitea/assets/2114189/558a5c06-c94c-4e5c-8395-d38473dd21c2) ![image](https://github.com/go-gitea/gitea/assets/2114189/3390fb0e-7dc7-457f-bd0c-398fdb6d24c0) ![image](https://github.com/go-gitea/gitea/assets/2114189/d19dd350-aecf-4909-8ef9-73b09d94560e) Co-authored-by: wxiaoguang --- templates/repo/diff/box.tmpl | 2 +- web_src/css/repo.css | 23 +++++++++-------------- web_src/js/components/DiffFileList.vue | 2 +- web_src/js/components/DiffFileTree.vue | 2 +- 4 files changed, 12 insertions(+), 17 deletions(-) diff --git a/templates/repo/diff/box.tmpl b/templates/repo/diff/box.tmpl index 15766363e..94a5a9a29 100644 --- a/templates/repo/diff/box.tmpl +++ b/templates/repo/diff/box.tmpl @@ -1,5 +1,5 @@
-
+
{{if not .DiffNotAvailable}}