From 1b13f3ba387305ce6313233a179ea5c581dd6a74 Mon Sep 17 00:00:00 2001 From: Nathan McRae Date: Fri, 15 Aug 2025 20:52:31 -0700 Subject: [PATCH] Fix text dimension styles --- src/Main.purs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Main.purs b/src/Main.purs index 43278d9..6056d37 100644 --- a/src/Main.purs +++ b/src/Main.purs @@ -68,12 +68,12 @@ getTextDimensions htmlDoc style text = do let styleText = ( "font" <> style.typeface - <> ";font: " <> style.typeface - <> ";fontSize: " <> (toString style.sizePx) <> "px" + <> ";font-family: " <> style.typeface + <> ";font-size: " <> (toString style.sizePx) <> "px" <> ";height: " <> "auto" <> ";width: " <> "auto" <> ";position: " <> "absolute" - <> ";whiteSpace: " <> "no-wrap" + <> ";white-space: " <> "nowrap" ) Element.setAttribute "style" styleText el