Skip to content

🎥 Make videos programmatically with React

TikTok template: Fix font layout calculation

Jonny Burgerb8b19b75195c
diff --git a/packages/template-tiktok/src/CaptionedVideo/Page.tsx b/packages/template-tiktok/src/CaptionedVideo/Page.tsx
index a736b15daf..9f48c08dbe 100644
--- a/packages/template-tiktok/src/CaptionedVideo/Page.tsx
+++ b/packages/template-tiktok/src/CaptionedVideo/Page.tsx
@@ -76,7 +76,7 @@ export const Page: React.FC<{
<span
key={t.fromMs}
style={{
- display: "inline-block",
+ display: "inline",
whiteSpace: "pre",
color: active ? HIGHLIGHT_COLOR : "white",
}}