annikwag commited on
Commit
2c74edb
·
verified ·
1 Parent(s): 2155b3d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -202,7 +202,7 @@ with col5_2:
202
  ###########################################
203
  # Filter Controls - Row 3 (Remaining Filter)
204
  ###########################################
205
- col_left, col_right = st.columns([15, 1])
206
  with col_left:
207
  # Place the "Show only exact matches" checkbox here (or any other widgets)
208
  show_exact_matches = st.checkbox("Show only exact matches", key="show_exact_matches")
@@ -316,7 +316,7 @@ else:
316
  total_pages_str = f"<b>{total_pages}</b>"
317
 
318
  # Create two columns: one for the title and one for the selectbox
319
- col_title, col_pag = st.columns([8, 4])
320
  with col_title:
321
  st.markdown(
322
  f"Showing **{total_results}** Lexical Search results (Page {page_num} of {total_pages_str})",
@@ -448,7 +448,7 @@ else:
448
 
449
  st.divider()
450
  # Use two columns: one for the page info and one for the selectbox.
451
- col_title, col_pag = st.columns([8, 4])
452
  with col_title:
453
  # Format page numbers with bold formatting (green if not the first page)
454
  page_num = f"<b style='color: green;'>{current_page}</b>" if current_page != 1 else f"<b>{current_page}</b>"
@@ -533,6 +533,6 @@ else:
533
  st.divider()
534
 
535
  # Bottom pagination widget (right aligned, 1/7 width)
536
- col_pag_bot = st.columns([11, 1])[1]
537
  new_page_bot = col_pag_bot.selectbox("Select Page", list(range(1, total_pages + 1)), index=st.session_state.page - 1, key="page_bot_sem")
538
  st.session_state.page = new_page_bot
 
202
  ###########################################
203
  # Filter Controls - Row 3 (Remaining Filter)
204
  ###########################################
205
+ col_left, col_right = st.columns([11, 1])
206
  with col_left:
207
  # Place the "Show only exact matches" checkbox here (or any other widgets)
208
  show_exact_matches = st.checkbox("Show only exact matches", key="show_exact_matches")
 
316
  total_pages_str = f"<b>{total_pages}</b>"
317
 
318
  # Create two columns: one for the title and one for the selectbox
319
+ col_title, col_pag = st.columns([13, 1])
320
  with col_title:
321
  st.markdown(
322
  f"Showing **{total_results}** Lexical Search results (Page {page_num} of {total_pages_str})",
 
448
 
449
  st.divider()
450
  # Use two columns: one for the page info and one for the selectbox.
451
+ col_title, col_pag = st.columns([13, 1])
452
  with col_title:
453
  # Format page numbers with bold formatting (green if not the first page)
454
  page_num = f"<b style='color: green;'>{current_page}</b>" if current_page != 1 else f"<b>{current_page}</b>"
 
533
  st.divider()
534
 
535
  # Bottom pagination widget (right aligned, 1/7 width)
536
+ col_pag_bot = st.columns([13, 1])[1]
537
  new_page_bot = col_pag_bot.selectbox("Select Page", list(range(1, total_pages + 1)), index=st.session_state.page - 1, key="page_bot_sem")
538
  st.session_state.page = new_page_bot