diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2023-07-20 21:23:46 +1000 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2023-07-20 21:23:46 +1000 |
commit | 87bf1dbc7f1b600635c38065127853cd71f1dc18 (patch) | |
tree | 514e0ea010c263762f2e47474cfb85ad144234d2 /pkg/gui/types/common.go | |
parent | 1f920ae6ba781d5862b8bd66084c2a75da3f3076 (diff) |
Only apply right-alignment on first column of keybindings menu
Previously we applied a right-align on the first column of _all_ menus, even though we really
only intended for it to be on the first column of the keybindings menu (that you get from pressing
'?')
Diffstat (limited to 'pkg/gui/types/common.go')
-rw-r--r-- | pkg/gui/types/common.go | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/pkg/gui/types/common.go b/pkg/gui/types/common.go index 02dee3b15..33b0f7a18 100644 --- a/pkg/gui/types/common.go +++ b/pkg/gui/types/common.go @@ -133,9 +133,10 @@ type IPopupHandler interface { } type CreateMenuOptions struct { - Title string - Items []*MenuItem - HideCancel bool + Title string + Items []*MenuItem + HideCancel bool + ColumnAlignment []utils.Alignment } type CreatePopupPanelOpts struct { |