style: format caption component HTML files

This commit is contained in:
Miguel Ángel
2026-05-17 17:12:25 -04:00
parent b725066fb5
commit ed5747a723
26 changed files with 178 additions and 36 deletions
+12 -2
View File
@@ -395,8 +395,18 @@
function buildCaptions(groups) {
var stage = document.getElementById("caption-stage");
groups.forEach(function (group, groupIndex) {
var groupText = group.words.map(function (w) { return w.text.toUpperCase(); }).join(" ");
var computedSize = fitFontSize(groupText, CAPTION_FONT_SIZE, "900", "Gabarito", SAFE_ZONE_WIDTH);
var groupText = group.words
.map(function (w) {
return w.text.toUpperCase();
})
.join(" ");
var computedSize = fitFontSize(
groupText,
CAPTION_FONT_SIZE,
"900",
"Gabarito",
SAFE_ZONE_WIDTH,
);
var groupEl = document.createElement("div");
groupEl.id = "caption-group-" + groupIndex;
groupEl.className = "caption-group";