mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-09-03 04:38:33 +00:00
style: format caption component HTML files
This commit is contained in:
@@ -288,8 +288,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.toLowerCase(); }).join(" ");
|
||||
var computedSize = fitFontSize(groupText, CAPTION_FONT_SIZE, "700", "Montserrat", MAX_LINE_WIDTH);
|
||||
var groupText = group.words
|
||||
.map(function (w) {
|
||||
return w.text.toLowerCase();
|
||||
})
|
||||
.join(" ");
|
||||
var computedSize = fitFontSize(
|
||||
groupText,
|
||||
CAPTION_FONT_SIZE,
|
||||
"700",
|
||||
"Montserrat",
|
||||
MAX_LINE_WIDTH,
|
||||
);
|
||||
var groupEl = document.createElement("div");
|
||||
var copyEl = document.createElement("div");
|
||||
groupEl.id = "caption-group-" + groupIndex;
|
||||
|
||||
+12
-2
@@ -288,8 +288,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.toLowerCase(); }).join(" ");
|
||||
var computedSize = fitFontSize(groupText, CAPTION_FONT_SIZE, "700", "Montserrat", MAX_LINE_WIDTH);
|
||||
var groupText = group.words
|
||||
.map(function (w) {
|
||||
return w.text.toLowerCase();
|
||||
})
|
||||
.join(" ");
|
||||
var computedSize = fitFontSize(
|
||||
groupText,
|
||||
CAPTION_FONT_SIZE,
|
||||
"700",
|
||||
"Montserrat",
|
||||
MAX_LINE_WIDTH,
|
||||
);
|
||||
var groupEl = document.createElement("div");
|
||||
var copyEl = document.createElement("div");
|
||||
groupEl.id = "caption-group-" + groupIndex;
|
||||
|
||||
Reference in New Issue
Block a user