Update app.py
Browse files
app.py
CHANGED
@@ -78,6 +78,18 @@ st.markdown("""
|
|
78 |
padding-top: 0;
|
79 |
}
|
80 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
81 |
/* Reduce spacing between sidebar elements */
|
82 |
section[data-testid="stSidebar"] .block-container {
|
83 |
padding-top: 1rem;
|
@@ -296,7 +308,8 @@ def cancel_editing_system_prompt():
|
|
296 |
# Sidebar for model selection and conversation management
|
297 |
with st.sidebar:
|
298 |
# Compact model selection at the top
|
299 |
-
|
|
|
300 |
|
301 |
# Model selection dropdown
|
302 |
selected_model = st.selectbox(
|
|
|
78 |
padding-top: 0;
|
79 |
}
|
80 |
|
81 |
+
/* Fix gap caused by sidebar collapse button */
|
82 |
+
.stSidebar > div:first-child {
|
83 |
+
margin-top: -1rem !important;
|
84 |
+
}
|
85 |
+
|
86 |
+
/* Specifically target the button that collapses sidebar */
|
87 |
+
button[kind="header"] {
|
88 |
+
height: 1.5rem !important;
|
89 |
+
margin-top: 0 !important;
|
90 |
+
padding-top: 0 !important;
|
91 |
+
}
|
92 |
+
|
93 |
/* Reduce spacing between sidebar elements */
|
94 |
section[data-testid="stSidebar"] .block-container {
|
95 |
padding-top: 1rem;
|
|
|
308 |
# Sidebar for model selection and conversation management
|
309 |
with st.sidebar:
|
310 |
# Compact model selection at the top
|
311 |
+
# Use markdown instead of subheader to reduce spacing
|
312 |
+
st.markdown("### Model Selection")
|
313 |
|
314 |
# Model selection dropdown
|
315 |
selected_model = st.selectbox(
|