Reduce size of the password prompt UI

This commit is contained in:
Drew DeVault 2020-03-03 21:51:27 -05:00
parent aec5dd170e
commit 15028df1f9

View file

@ -165,8 +165,8 @@ func (aerc *Aerc) Focus(focus bool) {
func (aerc *Aerc) Draw(ctx *ui.Context) { func (aerc *Aerc) Draw(ctx *ui.Context) {
aerc.grid.Draw(ctx) aerc.grid.Draw(ctx)
if aerc.getpasswd != nil { if aerc.getpasswd != nil {
aerc.getpasswd.Draw(ctx.Subcontext(4, 4, aerc.getpasswd.Draw(ctx.Subcontext(4, ctx.Height()/2-2,
ctx.Width()-8, ctx.Height()-8)) ctx.Width()-8, 4))
} }
} }