1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2024-11-24 08:57:03 -05:00

[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.

(cherry picked from commit a6f7ad3a6f)
This commit is contained in:
rome-user 2023-07-09 18:14:00 -07:00 committed by Earl Warren
parent 5fe0484984
commit b4b5dc0071
No known key found for this signature in database
GPG key ID: 0579CB2928A78A00

View file

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