fix(ui): do not clip overflow in workflow dispatch menu (#12753)

Fixes forgejo/forgejo#12090
Fixes forgejo/forgejo#12228
Fixes forgejo/forgejo#12743

Partially revert b5988efc85/web_src/css/actions.css (L91-L94) from forgejo/forgejo!10563.

This will cause overly long lists to overflow the viewport [like in this image](https://codeberg.org/forgejo/forgejo/attachments/b335c5b8-ad1a-44fc-bbd2-99c975c2a5e5), but will make the branch selector and select inputs usable again. In essence, replacing a serious bug with a less serious one.

Note: max-height limit wasn't effective since it was clipping inline (x) axis instead of block (y) axis. So the menu was still higher than 500 px.

Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/12753
Reviewed-by: Andreas Ahlenstorf <aahlenst@noreply.codeberg.org>
This commit is contained in:
0ko 2026-05-27 05:46:21 +02:00
parent dfdd9b2e2a
commit 8a72b70f5f

View file

@ -177,8 +177,8 @@
white-space: nowrap;
}
#workflow_dispatch_dropdown .menu {
/* FIXME: max-height is ineffective without `overflow:`, but clipping overflow breaks dropdown menus */
max-height: 500px;
overflow-inline: auto;
}
@media (max-width: 640px) or (767.98px < width < 854px) {
#workflow_dispatch_dropdown .menu {