Deactivate responsiveness of st.columns
See original GitHub issueHi, I’m using st.columns
on st.form
.
In mine desktop the widgets align. But in the mobile version not.
I did some tests here and discovered that in the mobile version the app don’t create the columns. Here are the app link and the app repo
Desktop version:
Mobile version:
The code:
import streamlit as st
with st.form("Test"):
col1, col2, col3 = st.columns(3)
with col1:
st.write("col1")
st.form_submit_button("Button 1")
with col2:
st.write("col2")
st.form_submit_button("Button 2")
with col3:
st.write("col3")
st.form_submit_button("Button 3")
Accept sugestions to solve this bug, maybe using css or markdown.
Community voting on feature requests enables the Streamlit team to understand which features are most important to our users.
If you’d like the Streamlit team to prioritize this feature request, please use the 👍 (thumbs up emoji) reaction in response to the initial post.
Issue Analytics
- State:
- Created a year ago
- Reactions:5
- Comments:7 (1 by maintainers)
Top Results From Across the Web
St.columns not working on mobile version - Using Streamlit
Hi, I'm using st.columns on st.form. ... of an enhancement request to add some capabilities to deactivate the responsiveness of columns.
Read more >Disable responsive behavior site-wide
We don't recommend disabling responsive behavior entirely. Here are some alternatives: You can prevent columns from stacking by setting custom ...
Read more >How to reduce the number of columns in a responsive layout?
Its simple you can use media Query and Reduce the padding from left and right. e.g : @media screen and (max-width:500px){ .wrapper ...
Read more >Creating responsive columns in Elementor - Artbees themes
2. Click on the column settings icon in upper-left corner of the column in your layout so that a new dashboard on the...
Read more >CSS · Bootstrap
You can disable zooming capabilities on mobile devices by adding ... In addition to column clearing at responsive breakpoints, you may need to...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@wizzioficial Thanks for reporting this!
st.columns
are built to be responsive, meaning that it will switch to rendering the columns underneath each other at a certain display size. So, this is more of an enhancement request to add some capabilities to deactivate the responsiveness of columns.As workaround, you can use CSS style: