From ee3e610aa70c71013d3c079aa710986e24c9ca7f Mon Sep 17 00:00:00 2001 From: Stephen Niedzielski Date: Fri, 1 Mar 2024 13:25:27 -0700 Subject: [PATCH] Fix untitled width --- src/elements/play-resizable-text-input.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/elements/play-resizable-text-input.ts b/src/elements/play-resizable-text-input.ts index 929f52a..418660b 100644 --- a/src/elements/play-resizable-text-input.ts +++ b/src/elements/play-resizable-text-input.ts @@ -128,6 +128,7 @@ export class PlayResizableTextInput extends LitElement { span.style.fontSize = '24px' span.style.fontStyle = 'normal' span.style.fontWeight = '400' + span.style.padding = '12px' document.body.appendChild(span) input.style.maxWidth = `${span.offsetWidth}px` document.body.removeChild(span)