From 24145f811069295b9727f25469f1dd3a7c2c5dd7 Mon Sep 17 00:00:00 2001 From: Kerwin Bryant Date: Wed, 30 Apr 2025 02:43:59 +0000 Subject: [PATCH] Fix "The sidebar of the repository file list does not have a fixed height #34298" --- 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 c3d562003dcbc..85d09d03a18bd 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 69c454d6112af..61b0a1f9626cf 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 {