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
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.