fix(webui): properly center banner select highlight

feat/vault-scan-modes
Tomáš Mládek 2023-10-22 20:46:03 +02:00
parent 37d5cee2ad
commit cfd1384582
1 changed files with 2 additions and 1 deletions

View File

@ -76,10 +76,11 @@
ctx.font = `bold ${rect.height / 2}px Inter`;
ctx.textAlign = "center";
ctx.textBaseline = "middle";
const fix = ctx.measureText("M").actualBoundingBoxDescent / 2;
ctx.fillText(
$i18n.t("Select All"),
rect.left + rect.width / 2,
rect.top + rect.height / 2,
rect.top + rect.height / 2 + fix,
);
}
}