This merge request fixes the menu offset of views in menu items on Big Sur and later.
I'm not able to test on releases before Big Sur but maybe the constant should be changed from 21 to 20 based on the values from iTerm instead of this?
Before and after: