h2oai / wave

Realtime Web Apps and Dashboards for Python and R
https://wave.h2o.ai
Apache License 2.0
3.9k stars 323 forks source link

Add width arg to ui.copyable_text #2282

Closed g-eoj closed 3 months ago

g-eoj commented 3 months ago

I'd like to be able to control the width of ui.copyable_text elements so that I can make it match the width of other elements on a page. As many ui methods have a width arg, this seems like a reasonable way to do it.

I've tried forcing the width to change through zones or wrapping it with ui.inline.

Note what I see now is either full width or the box shrinks to some predetermined size, no matter what I try:

Screenshot 2024-03-05 at 3 58 39 PM