diff options
Diffstat (limited to 'commands/patch')
-rw-r--r-- | commands/patch/list.go | 10 | ||||
-rw-r--r-- | commands/patch/rebase.go | 10 |
2 files changed, 2 insertions, 18 deletions
diff --git a/commands/patch/list.go b/commands/patch/list.go index 73461f2e..ee2850c3 100644 --- a/commands/patch/list.go +++ b/commands/patch/list.go @@ -88,18 +88,10 @@ func (l List) Execute(args []string) error { ) } - app.AddDialog(app.NewDialog( + app.AddDialog(app.LargeDialog( ui.NewBox(viewer, "Patch Management", "", app.SelectedAccountUiConfig(), ), - // start pos on screen - func(h int) int { - return h / 8 - }, - // dialog height - func(h int) int { - return h - 2*h/8 - }, )) return nil diff --git a/commands/patch/rebase.go b/commands/patch/rebase.go index 6ef43299..65aa580a 100644 --- a/commands/patch/rebase.go +++ b/commands/patch/rebase.go @@ -117,18 +117,10 @@ func (r Rebase) Execute(args []string) error { return err } - app.AddDialog(app.NewDialog( + app.AddDialog(app.LargeDialog( ui.NewBox(viewer, fmt.Sprintf("Patch Rebase on %-6.6s", baseID), "", app.SelectedAccountUiConfig(), ), - // start pos on screen - func(h int) int { - return h / 8 - }, - // dialog height - func(h int) int { - return h - 2*h/8 - }, )) return nil |