Fix line break in IPA sample. (#2436)

This commit is contained in:
John McWilliams 2024-07-27 15:51:21 -04:00 committed by GitHub
parent 20007f60a1
commit 198f5744e5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -49,9 +49,9 @@ export default (function (args) {
const theme = themes[args.theme]; const theme = themes[args.theme];
const EM = 24; const EM = 24;
const elementHeight = 1.5 * EM; const elementHeight = 1.5 * EM;
const canvasWidth = 60 * EM; const canvasWidth = 62 * EM;
const canvasHeight = (2 + languages.length) * elementHeight; const canvasHeight = (2 + languages.length) * elementHeight;
const xSplit = 10 * EM; const xSplit = 11 * EM;
let frames = []; let frames = [];
for (const [j, { lang, sample, localeId }] of languages.entries()) { for (const [j, { lang, sample, localeId }] of languages.entries()) {
const top = canvasHeight / 2 + elementHeight * (j - languages.length / 2); const top = canvasHeight / 2 + elementHeight * (j - languages.length / 2);