aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2020-03-03 21:51:27 -0500
committerDrew DeVault <sir@cmpwn.com>2020-03-03 21:51:27 -0500
commit15028df1f98a018a1913202a842d5a2850c43eb0 (patch)
tree827b9ddedd8ec3eccba070af18df2d1ce70ef020
parentaec5dd170e27dcf0b493301533d6869de14b7eae (diff)
downloadaerc-15028df1f98a018a1913202a842d5a2850c43eb0.tar.gz
Reduce size of the password prompt UI
-rw-r--r--widgets/aerc.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/widgets/aerc.go b/widgets/aerc.go
index e6d25259..b7071e1a 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))
}
}