Update app.py
Browse files
app.py
CHANGED
|
@@ -15,7 +15,7 @@ def logged_in_interface():
|
|
| 15 |
# Crear un contenedor para la barra superior
|
| 16 |
with st.container():
|
| 17 |
# Usar m谩s columnas para un mejor control del espacio
|
| 18 |
-
col1, col2, col3, col4, col5
|
| 19 |
|
| 20 |
with col1:
|
| 21 |
st.markdown(f"<h3 style='margin-bottom: 0;'>Bienvenido, {st.session_state.username}</h3>", unsafe_allow_html=True)
|
|
@@ -24,10 +24,11 @@ def logged_in_interface():
|
|
| 24 |
st.markdown("<p style='font-size: 1.2rem; margin-bottom: 0; padding-top: 10px;'>Idioma:</p>", unsafe_allow_html=True)
|
| 25 |
|
| 26 |
with col4:
|
|
|
|
| 27 |
selected_lang = st.selectbox("", list(languages.keys()), key="language_selector", label_visibility="collapsed")
|
| 28 |
lang_code = languages[selected_lang]
|
| 29 |
|
| 30 |
-
with
|
| 31 |
if st.button("Cerrar Sesi贸n", key="logout_button"):
|
| 32 |
st.session_state.logged_in = False
|
| 33 |
st.experimental_rerun()
|
|
|
|
| 15 |
# Crear un contenedor para la barra superior
|
| 16 |
with st.container():
|
| 17 |
# Usar m谩s columnas para un mejor control del espacio
|
| 18 |
+
col1, col2, col3, col4, col5 = st.columns([4, 0.5, 1.2, 2.3, 2])
|
| 19 |
|
| 20 |
with col1:
|
| 21 |
st.markdown(f"<h3 style='margin-bottom: 0;'>Bienvenido, {st.session_state.username}</h3>", unsafe_allow_html=True)
|
|
|
|
| 24 |
st.markdown("<p style='font-size: 1.2rem; margin-bottom: 0; padding-top: 10px;'>Idioma:</p>", unsafe_allow_html=True)
|
| 25 |
|
| 26 |
with col4:
|
| 27 |
+
st.markdown("<style>.stSelectbox { margin-left: -20px; }</style>", unsafe_allow_html=True)
|
| 28 |
selected_lang = st.selectbox("", list(languages.keys()), key="language_selector", label_visibility="collapsed")
|
| 29 |
lang_code = languages[selected_lang]
|
| 30 |
|
| 31 |
+
with col5:
|
| 32 |
if st.button("Cerrar Sesi贸n", key="logout_button"):
|
| 33 |
st.session_state.logged_in = False
|
| 34 |
st.experimental_rerun()
|