fantastic news for the end of the year. However, I found the follwing behaviour and I wonder if it is a feature or a bug: I want to display a login button on the top-right. I have achieved this until now, by generating 2 columns and placed the button in the second column. Since version 1.3.0, if there is no content in column 0, the button will be placed in column 0 instead of column 1. The system also seems to react differently if the layout is set to wide, if I dont define the layout setting, it works as before. Placing an empty string in the first column is an easy enough workaround, just wanted to know it this behaviour is intended. Also: is there a better way for placing the login button to the upper-right? for example right-align widgets without any columns at all?
import streamlit as st
st.set_page_config(layout="wide")
cols = st.columns([9,1])
#if uncommented, it works
#with cols[0]:
# st.write('')
with cols[1]:
if st.button('Login'):
pass
I have a solution for this but am working to get testing done and ensure itβs the correct change. With that, we can issue a patch release. Likely giving the timing, the patch will not be ready until the new year, but I will do my best to see if I can get it in sooner.
hi @kmcgrady: fantastic! Thanks for the fast fix. You guys are amazing. I hope I have not kept you from rest and rejuvenating these days.
cheers and happy new year.
Lukas