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")