Skip to content

Commit

Permalink
Fix untitled width
Browse files Browse the repository at this point in the history
  • Loading branch information
niedzielski committed Mar 1, 2024
1 parent 4aff069 commit ee3e610
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/elements/play-resizable-text-input.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit ee3e610

Please sign in to comment.