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
1 changed files with 2 additions and 2 deletions

View File

@ -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))
}
}