From a6f7ad3a6f2741df2b1fd1c8f8f99bccf5b748ff Mon Sep 17 00:00:00 2001 From: rome-user Date: Sun, 9 Jul 2023 18:14:00 -0700 Subject: [PATCH] [GITEA] avoid hard-coding height in language dropdown menu This commit removes the hard-coded height of 500px, using that as a max-height instead. The height of items in the dropdown menu, assuming a default font size of 16px, is 36px, so the old CSS would cause overly large dropdown menus in instances of Forgejo where less than 14 languages are offered. --- web_src/css/home.css | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/web_src/css/home.css b/web_src/css/home.css index 55caf4cb27..28992ef31f 100644 --- a/web_src/css/home.css +++ b/web_src/css/home.css @@ -74,8 +74,7 @@ } .page-footer .ui.dropdown.language .menu { - height: 500px; - max-height: calc(100vh - 60px); + max-height: min(500px, calc(100vh - 60px)); overflow-y: auto; margin-bottom: 10px; }