I’ve noticed that my app (code here) - as well as pretty much every app I’ve run from the Streamlit Gallery that has any tables or graphs in it - slides from left to right on mobile (iPhone, or narrowest possible window in desktop Safari and Chrome).
Please could Streamlit fix this? It makes apps very frustrating to use on mobile. I suspect it has something to do with breakpoints, as there is no sliding when I make the window just a few pixels wider. Is this being worked on?
Ah! Not sure how I missed that on my first read-through (sorry about that )!
Since this has been requested 2 times, and I have a method for the team to reproduce it (I told them to make the browser super narrow), I have created a Github issue for it. If you want it to gain traction comment on it or like it to have it gain momentum with the team!
Thanks for opening the issue on GitHub! Appreciate it. I’d like to share my app with my friends and colleagues, but I know many of them will view it on their phones, so the mobile experience is important.
Hello @adenhaus@Marisa_Smith . I wonder if there has been a formal solution to this problem? If not, have you found any workaround with css markdown? Thanks.
It seems that this could be fixed with very small css hack, disallowing horizontal scrolling?
streamlit app:
import streamlit as st
def local_css(file_name):
with open(file_name) as f:
st.markdown(f"<style>{f.read()}</style>", unsafe_allow_html=True)
local_css("style.css")
Thanks for stopping by! We use cookies to help us understand how you interact with our website.
By clicking “Accept all”, you consent to our use of cookies. For more information, please see our privacy policy.
Cookie settings
Strictly necessary cookies
These cookies are necessary for the website to function and cannot be switched off. They are usually only set in response to actions made by you which amount to a request for services, such as setting your privacy preferences, logging in or filling in forms.
Performance cookies
These cookies allow us to count visits and traffic sources so we can measure and improve the performance of our site. They help us understand how visitors move around the site and which pages are most frequently visited.
Functional cookies
These cookies are used to record your choices and settings, maintain your preferences over time and recognize you when you return to our website. These cookies help us to personalize our content for you and remember your preferences.
Targeting cookies
These cookies may be deployed to our site by our advertising partners to build a profile of your interest and provide you with content that is relevant to you, including showing you relevant ads on other websites.