Spaces:
Sleeping
Sleeping
Anna Zhou commited on
Commit ·
b2bfa16
1
Parent(s): 0b8d85b
Tighten navigation spacing
Browse files- app/app.py +3 -2
app/app.py
CHANGED
|
@@ -183,20 +183,21 @@ def _render_navigation(current_page: str, conversation_id: str) -> None:
|
|
| 183 |
key=f"nav_{page}",
|
| 184 |
type="primary" if page == current_page else "secondary",
|
| 185 |
disabled=page == current_page,
|
|
|
|
| 186 |
):
|
| 187 |
_set_query_param("disclaimer_accepted", "true")
|
| 188 |
_set_query_param("conversation_id", conversation_id)
|
| 189 |
_set_query_param("page", page)
|
| 190 |
st.rerun()
|
| 191 |
|
| 192 |
-
top_cols = st.columns([3.45, 0.75, 1.55, 1.05])
|
| 193 |
top_cols[0].markdown('<div class="rfr-nav-brand">RFR Knowledge Platform</div>', unsafe_allow_html=True)
|
| 194 |
nav_button(top_cols[1], "ask", "Ask")
|
| 195 |
nav_button(top_cols[2], "previous_responses", "Previous Responses")
|
| 196 |
nav_button(top_cols[3], "how_to_use", "How to Use")
|
| 197 |
|
| 198 |
st.markdown('<div class="rfr-nav-spacer"></div>', unsafe_allow_html=True)
|
| 199 |
-
bottom_cols = st.columns([3.45, 2.2, 1.25, 0.8])
|
| 200 |
nav_button(bottom_cols[1], "new_case_requests", "New Case Study Requests")
|
| 201 |
nav_button(bottom_cols[2], "case_studies", "Case Studies")
|
| 202 |
nav_button(bottom_cols[3], "about", "About")
|
|
|
|
| 183 |
key=f"nav_{page}",
|
| 184 |
type="primary" if page == current_page else "secondary",
|
| 185 |
disabled=page == current_page,
|
| 186 |
+
use_container_width=True,
|
| 187 |
):
|
| 188 |
_set_query_param("disclaimer_accepted", "true")
|
| 189 |
_set_query_param("conversation_id", conversation_id)
|
| 190 |
_set_query_param("page", page)
|
| 191 |
st.rerun()
|
| 192 |
|
| 193 |
+
top_cols = st.columns([3.45, 0.75, 1.55, 1.05, 3.0], gap="small")
|
| 194 |
top_cols[0].markdown('<div class="rfr-nav-brand">RFR Knowledge Platform</div>', unsafe_allow_html=True)
|
| 195 |
nav_button(top_cols[1], "ask", "Ask")
|
| 196 |
nav_button(top_cols[2], "previous_responses", "Previous Responses")
|
| 197 |
nav_button(top_cols[3], "how_to_use", "How to Use")
|
| 198 |
|
| 199 |
st.markdown('<div class="rfr-nav-spacer"></div>', unsafe_allow_html=True)
|
| 200 |
+
bottom_cols = st.columns([3.45, 2.2, 1.25, 0.8, 3.0], gap="small")
|
| 201 |
nav_button(bottom_cols[1], "new_case_requests", "New Case Study Requests")
|
| 202 |
nav_button(bottom_cols[2], "case_studies", "Case Studies")
|
| 203 |
nav_button(bottom_cols[3], "about", "About")
|