From 1f00bc44b276cd3fcb1e880e9b1de90c9bb89e83 Mon Sep 17 00:00:00 2001 From: wxiaoguang Date: Thu, 28 Sep 2023 18:00:26 +0800 Subject: [PATCH] Fix review UI (#27322) 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) --- 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 15766363e7..94a5a9a295 100644 --- a/templates/repo/diff/box.tmpl +++ b/templates/repo/diff/box.tmpl @@ -1,5 +1,5 @@
-
+
{{if not .DiffNotAvailable}}