Hello,
For the moment I have a horizontal scroll bar for each of my two st.writes. I would like to have only one that scrolls both texts at the same time. I show you my code :
col1, col2 = st.columns(2)
res1= My_function(st.session_state.default1, st.session_state.default2)[0]
res2 = My_function(st.session_state.default1, st.session_state.default2)[1]
with col1:
st.write(
f"""
<div style="max-width: 600px; overflow: auto; overflow-y: hidden;">
<p style="white-space: nowrap;">{res1}</p>
</div>
""",
unsafe_allow_html=True,
)
with col2:
st.write(
f"""
<div style="max-width: 600px; overflow: auto; overflow-y: hidden;">
<p style="white-space: nowrap;">{res2}</p>
</div>
""",
unsafe_allow_html=True,
)