mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-10 12:49:52 +01:00
avoid hard-coding height in language dropdown menu (#25986)
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: rome-user <rome-user@noreply.codeberg.org> Co-authored-by: Giteabot <teabot@gitea.io>
This commit is contained in:
parent
ad4c09b59f
commit
8833853dd6
1 changed files with 1 additions and 2 deletions
|
@ -74,8 +74,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.page-footer .ui.dropdown.language .menu {
|
.page-footer .ui.dropdown.language .menu {
|
||||||
height: 500px;
|
max-height: min(500px, calc(100vh - 60px));
|
||||||
max-height: calc(100vh - 60px);
|
|
||||||
overflow-y: auto;
|
overflow-y: auto;
|
||||||
margin-bottom: 10px;
|
margin-bottom: 10px;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue