Overflow of menu list

It seems that the menu list is not automatically adjusted with respect to the window size under Sway WM (Wayland), run with -platform wayland. I enabled global scaling factor of 1.5 in Sway WM. A screenshot: