SSR
All checks were successful
deploy to production / deploy (push) Successful in 1m7s

This commit is contained in:
Robin Grenzdörfer 2023-12-06 20:24:12 +00:00
parent 0bb518341d
commit 8a0db9de1c

View File

@ -82,7 +82,6 @@
characterCount = textElement.textContent.length - 1
spaceNeeded = containerWidth - textWidth
console.log(containerWidth, textWidth, characterCount)
if (characterCount > 0 && spaceNeeded > 0) {
const additionalLetterSpacing = spaceNeeded / characterCount
const newLetterSpacing = additionalLetterSpacing