Closed archydeberker closed 4 years ago
Fixes https://github.com/archydeberker/corona-calculator/issues/33.
This is a combination of hacks from https://community.plot.ly/t/plot-sizing-problems/1620/24 and https://discuss.streamlit.io/t/are-you-using-html-in-markdown-tell-us-why/96/44.
It uses a media query to set the minimum graph width to 95vw if the screen width is less than 700 px (the Streamlit column width).
95vw
700 px
It also hides the hamburger menu in the top right.
Fixes https://github.com/archydeberker/corona-calculator/issues/33.
This is a combination of hacks from https://community.plot.ly/t/plot-sizing-problems/1620/24 and https://discuss.streamlit.io/t/are-you-using-html-in-markdown-tell-us-why/96/44.
It uses a media query to set the minimum graph width to
95vw
if the screen width is less than700 px
(the Streamlit column width).It also hides the hamburger menu in the top right.