Skip to content

Commit 28e8c69

Browse files
GiteaBotearl-warrenrome-user
authored
avoid hard-coding height in language dropdown menu (#25986) (#25997)
Backport #25986 by @earl-warren 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 where less than 14 languages are offered. Refs: https://codeberg.org/forgejo/forgejo/pulls/1000 Co-authored-by: Earl Warren <[email protected]> Co-authored-by: rome-user <[email protected]>
1 parent f81a612 commit 28e8c69

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

web_src/css/home.css

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,7 @@
7474
}
7575

7676
.page-footer .ui.dropdown.language .menu {
77-
height: 500px;
78-
max-height: calc(100vh - 60px);
77+
max-height: min(500px, calc(100vh - 60px));
7978
overflow-y: auto;
8079
margin-bottom: 10px;
8180
}

0 commit comments

Comments
 (0)