chore: format
This commit is contained in:
@@ -42,7 +42,10 @@ onRender((ctx) => {
|
||||
ctx.textBaseline = "top";
|
||||
ctx.fillStyle = "#ffffff";
|
||||
|
||||
const rawText = typeof confirmationModal.text === "function" ? confirmationModal.text() : confirmationModal.text;
|
||||
const rawText =
|
||||
typeof confirmationModal.text === "function"
|
||||
? confirmationModal.text()
|
||||
: confirmationModal.text;
|
||||
const lines = rawText.split("\n").slice(0, MAX_LINES);
|
||||
const totalTextHeight = lines.length * LINE_HEIGHT;
|
||||
const textStartY = BG_Y + Math.floor((BG_HEIGHT - totalTextHeight) / 2) - 2;
|
||||
|
||||
Reference in New Issue
Block a user