daattali / colourpicker

🎨 A colour picker tool for Shiny and for selecting colours in plots (in R)
https://daattali.com/shiny/colourInput/
Other
215 stars 28 forks source link

Change element width for colourInput #52

Closed reedliu closed 1 year ago

reedliu commented 2 years ago

Hi, Thanks for your nicely colourpicker package. I tried to make all elements are the same width. I was wondering how to change the colorInput width like numericInput in Shiny. I did not find the width parameter in colorInput function. Thank you! image

daattali commented 2 years ago

That's a valid question. The reason there is no "width" supported is because the UI of the box that opens (the actual colour select) is fixed and won't scale up/down with the width of the text box. It's very easy to add a width argument and just change the length of the text box, but I thought it would look too weird if the box is shorter or longer and the selector tool doesn't adjust accordingly.

daattali commented 1 year ago

Fixed