From bbfc21e74f69a9b1ac83271923210c731edd2873 Mon Sep 17 00:00:00 2001 From: Kerwin Bryant Date: Thu, 8 May 2025 05:33:30 +0800 Subject: [PATCH] Fix "The sidebar of the repository file list does not have a fixed height #34298" (#34321) There is a known issue where scrolling to the bottom of the page is affected by unknown elements in the footer area: https://github.com/go-gitea/gitea/blob/24145f811069295b9727f25469f1dd3a7c2c5dd7/templates/base/footer.tmpl#L11-L18 ![after](https://github.com/user-attachments/assets/4cdbce32-d22e-4907-a78b-c8e301017fac) --- templates/repo/view.tmpl | 2 +- web_src/css/repo/home.css | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/templates/repo/view.tmpl b/templates/repo/view.tmpl index c3d562003d..85d09d03a1 100644 --- a/templates/repo/view.tmpl +++ b/templates/repo/view.tmpl @@ -17,7 +17,7 @@ {{template "repo/code/recently_pushed_new_branches" .}}
-
+
{{template "repo/view_file_tree" .}}
diff --git a/web_src/css/repo/home.css b/web_src/css/repo/home.css index 69c454d611..61b0a1f962 100644 --- a/web_src/css/repo/home.css +++ b/web_src/css/repo/home.css @@ -58,6 +58,11 @@ flex: 0 0 15%; min-width: 0; max-height: 100vh; + position: sticky; + top: 0; + bottom: 0; + height: 100%; + overflow-y: hidden; } .repo-view-content {