From cb8ee706252666bbfd215af26ecd87acc39d077c Mon Sep 17 00:00:00 2001 From: Andrew Gregory Date: Thu, 2 Dec 2021 16:05:36 +0800 Subject: [PATCH] Update app.js --- apps/authentiwatch/app.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/authentiwatch/app.js b/apps/authentiwatch/app.js index 7b442e0e8..85c76b5d1 100644 --- a/apps/authentiwatch/app.js +++ b/apps/authentiwatch/app.js @@ -152,7 +152,7 @@ function drawToken(id, r) { sz = 30; do { g.setFont("Vector", sz--); - } while (g.stringWidth(state.otp) > r.w); + } while (g.stringWidth(state.otp) > (r.w - adj)); g.drawString(state.otp, (x1 + x2) / 2 + adj, y1 + 16, false); } // shaded lines top and bottom @@ -228,7 +228,7 @@ function draw() { } else { g.setFont("Vector", 30); g.setFontAlign(0, 0, 0); - g.drawString(notokens, Bangle.appRect.x + Bangle.appRect.w / 2,Bangle.appRect.y + Bangle.appRect.h / 2, false); + g.drawString(notokens, Bangle.appRect.x + Bangle.appRect.w / 2, Bangle.appRect.y + Bangle.appRect.h / 2, false); } }