From 15028df1f98a018a1913202a842d5a2850c43eb0 Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Tue, 3 Mar 2020 21:51:27 -0500 Subject: [PATCH] Reduce size of the password prompt UI --- widgets/aerc.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/widgets/aerc.go b/widgets/aerc.go index e6d2525..b7071e1 100644 --- a/widgets/aerc.go +++ b/widgets/aerc.go @@ -165,8 +165,8 @@ func (aerc *Aerc) Focus(focus bool) { func (aerc *Aerc) Draw(ctx *ui.Context) { aerc.grid.Draw(ctx) if aerc.getpasswd != nil { - aerc.getpasswd.Draw(ctx.Subcontext(4, 4, - ctx.Width()-8, ctx.Height()-8)) + aerc.getpasswd.Draw(ctx.Subcontext(4, ctx.Height()/2-2, + ctx.Width()-8, 4)) } }