diff options
author | Giteabot <teabot@gitea.io> | 2023-07-19 19:05:22 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-20 01:05:22 +0200 |
commit | 28e8c691a6e021e755e33c066c26edf36bf08125 (patch) | |
tree | 2267f7e5e27864c9af74cb869b585625dc7fd770 /web_src | |
parent | f81a612eb195c1ca9c180a19dd72360809521067 (diff) | |
download | gitea-28e8c691a6e021e755e33c066c26edf36bf08125.tar.gz gitea-28e8c691a6e021e755e33c066c26edf36bf08125.zip |
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 <109468362+earl-warren@users.noreply.github.com>
Co-authored-by: rome-user <rome-user@noreply.codeberg.org>
Diffstat (limited to 'web_src')
-rw-r--r-- | web_src/css/home.css | 3 |
1 files changed, 1 insertions, 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; } |