While Streamlitâs components are quite pretty, I find that they are incredibly wasteful with screen space, compared to, say, R shiny or Tableau dashboards. For example, components like selectbox have huge font sizes and there is a lot of white space everywhere.
This creates a usability problem in applications like BI or interactive visualization, where you want to give power users many options to tweak without scrolling away from the main visualization. Tabs and expanders offer some relief, but they limit what you can have on the screen at one time.
I get that you shouldnât overload your user interfaces. However, in my opinion, this argument does not apply to applications for power users, who want maximum information with minimum distraction. Look at BI dashboards, software used by finance pros, or just tools based on Excel spreadsheets â very high density, but thatâs what those users want and need. At least the users Iâm trying to convince of using Streamlit apps instead of Excel sheets.
So, Iâm wondering whether anyone has tried to tweak Streamlit to be a bit more compact?
Are there any official roadmap plans in that direction?
Anybody else struggling with this?
Here are some thoughts:
I think that the new-ish options to omit labels, as well as radioâs horizontal options are good steps in that direction.
An option for a smaller font in selectbox, multiselect, and elsewhere could be a low-hanging fruit.
It would be nice to get rid of this enormous whitespace at the top of every app.
Thanks for taking the time to give us some thoughts and suggestions, greatly appreciated. Iâll make sure to forward this to our product managers.
Speaking of the roadmap, it is publicly available at https://roadmap.streamlit.app/ and youâll be glad to see that âVisual Customizationâ is in the roadmap as well. For a high-level overview of the Streamlit roadmap also check out the following blog:
In the mean time, all layout of a Streamlit app can be customized by adjusting the CSS. I made a video on how to do so in the video below (code in the video description):
Hey @DCBB! For whitespace at the top of the app, we have a GitHub issue here, please feel free to upvote that and leave additional comments if you like. Might also make sense to open another issue on compact layout in general. I donât think we have one as far as Iâm aware. We usually try to have feature requests on GitHub so a) others can upvote them and b) they donât get lost among the thousands of other forum posts. Thanks for your input!!