fix(webui): properly center banner select highlight
parent
37d5cee2ad
commit
cfd1384582
|
@ -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,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue