🎥 Make videos programmatically with React
Apply suggestion from @pullfrog[bot]
Jonny Burger3ce37853e28a
diff --git a/packages/web-renderer/src/get-biggest-bounding-client-rect.ts b/packages/web-renderer/src/get-biggest-bounding-client-rect.tsindex d4b7ef395e..ce5ab4ebe2 100644--- a/packages/web-renderer/src/get-biggest-bounding-client-rect.ts+++ b/packages/web-renderer/src/get-biggest-bounding-client-rect.ts@@ -39,11 +39,9 @@ const getTextOverflowForLineHeight = (}// When line-height < 1, the line box is smaller than the font-size.- // Text can overflow by approximately (1 - lineHeight) * fontSize total,- // split between top and bottom.+ // Text can overflow by (1 - lineHeight) * fontSize split across top and bottom.+ // We apply the full amount to each side as a conservative safety margin.const overflow = (1 - lineHeightValue) * fontSize;-- return {top: overflow, bottom: overflow};};export const getBiggestBoundingClientRect = (