Workarounds for widget size / layout?

Hi there,

Earlier today I found a bug, which means I cannot use st.sidebar.slider in my app (submitted on Github).

I was wondering if there is any way how to control the size of widgets? Eg, when I use st.slider(), it runs across the whole page (100% width).
Alternatively, is there a way how to put multiple widgets on the same line? (grid- / flex-type system)

Any ideas would be appreciated!

2 Likes

Hi @svilupp!

Earlier today I found a bug, which means I cannot use st.sidebar.slider in my app (submitted on Github).

Thanks for the heads up. I missed this somehow. I’m investigating it now and will post any updates in the issue on Github.

I was wondering if there is any way how to control the size of widgets? Eg, when I use st.slider(), it runs across the whole page (100% width).
Alternatively, is there a way how to put multiple widgets on the same line? (grid- / flex-type system)

Not yet, but it’s near the top of our roadmap. The main problem is figuring out a nice and clean API that is still just powerful enough.

You can follow progress on this here and here.

3 Likes