Update app.js

master
Andrew Gregory 2021-12-02 16:05:36 +08:00 committed by GitHub
parent 012982e910
commit cb8ee70625
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -152,7 +152,7 @@ function drawToken(id, r) {
sz = 30; sz = 30;
do { do {
g.setFont("Vector", sz--); 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); g.drawString(state.otp, (x1 + x2) / 2 + adj, y1 + 16, false);
} }
// shaded lines top and bottom // shaded lines top and bottom
@ -228,7 +228,7 @@ function draw() {
} else { } else {
g.setFont("Vector", 30); g.setFont("Vector", 30);
g.setFontAlign(0, 0, 0); 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);
} }
} }