rough-stuff / wired-elements

Collection of custom elements that appear hand drawn. Great for wireframes or a fun look.
https://wiredjs.com
MIT License
10.44k stars 329 forks source link

Can't change width #185

Closed accordionfish closed 1 year ago

accordionfish commented 1 year ago

I can't manually change the width of a dialog without adding more text. This is the dialog:

<wired-dialog id="dialog1">
    <p id="content1">

    </p>
    <wired-input id="name-input" ></wired-input>
    <div style="text-align: right; padding: 30px 16px 16px;">
      <wired-button id="closeDialog">Done</wired-button>
    </div>
  </wired-dialog>

and this is the CSS:

#dialog1 {
  width:150px;
  height:120px;
}
#name-input {
 width:150px; 
}

and even with adding more text, the input still is not as wide as intended.

accordionfish commented 1 year ago

Update: I changed the width of the text container and for some reason adding position:absolute to the input allows for changing the width.