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;
 }