Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -4,12 +4,32 @@ import streamlit as st
|
|
| 4 |
|
| 5 |
st.set_page_config(page_title="Olist Chatbot", layout="wide", page_icon="🛍️")
|
| 6 |
|
| 7 |
-
# Optional enterprise theme shim (tweak as desired)
|
| 8 |
st.markdown("""
|
| 9 |
<style>
|
| 10 |
-
|
| 11 |
-
.
|
| 12 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 13 |
</style>
|
| 14 |
""", unsafe_allow_html=True)
|
| 15 |
|
|
|
|
| 4 |
|
| 5 |
st.set_page_config(page_title="Olist Chatbot", layout="wide", page_icon="🛍️")
|
| 6 |
|
|
|
|
| 7 |
st.markdown("""
|
| 8 |
<style>
|
| 9 |
+
/* Hide any truly empty blocks at the top of the RIGHT column */
|
| 10 |
+
section.main [data-testid="column"]:nth-child(2) [data-testid="stVerticalBlock"] > div:empty {
|
| 11 |
+
display: none !important;
|
| 12 |
+
}
|
| 13 |
+
/* Hide empty markdown containers that sometimes get emitted */
|
| 14 |
+
section.main [data-testid="column"]:nth-child(2) [data-testid="stMarkdownContainer"]:empty {
|
| 15 |
+
display: none !important;
|
| 16 |
+
}
|
| 17 |
+
/* Inside our card, if an empty div sneaks in, hide it */
|
| 18 |
+
#login-card > div:empty { display:none !important; }
|
| 19 |
+
|
| 20 |
+
/* Link-row styles (used below) */
|
| 21 |
+
.links-row { margin-top: 10px; color: #6b7280; font-size: 14px; }
|
| 22 |
+
.links-row .muted { color:#6b7280; }
|
| 23 |
+
.links-row [data-testid="stButton"] > button {
|
| 24 |
+
background: none; border: none; padding: 0; box-shadow:none;
|
| 25 |
+
color: #266EF1; text-decoration: underline; cursor: pointer;
|
| 26 |
+
}
|
| 27 |
+
.links-row [data-testid="stButton"] > button:hover { text-decoration: none; }
|
| 28 |
+
|
| 29 |
+
/* Make the LOGIN button normal again (not affected by link-row rules) */
|
| 30 |
+
#login-card > div [data-testid="stButton"] > button {
|
| 31 |
+
border-radius: 10px;
|
| 32 |
+
}
|
| 33 |
</style>
|
| 34 |
""", unsafe_allow_html=True)
|
| 35 |
|