georad commited on
Commit
336be92
·
verified ·
1 Parent(s): e137e83

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -3,14 +3,14 @@ import streamlit as st
3
  import time
4
 
5
  # Inspect the header element, go to the "Computed" tab in styles, and find its height.
6
- HEADER_HEIGHT = "30px" # EXAMPLE: Adjust this (e.g., "56px", "4rem")
7
  HEADER_SELECTOR = 'header[data-testid="stHeader"]'
8
 
9
  # ---- SELECTOR FOR THE MAIN CONTENT AREA THAT NEEDS PADDING ----
10
  # This targets the first direct div child of the stAppViewContainer,
11
  # which often holds the main scrollable content.
12
  #MAIN_CONTENT_SELECTOR = 'section[data-testid="stApp"]'
13
- MAIN_CONTENT_SELECTOR = 'section[data-testid="stMain"]'
14
  #MAIN_CONTENT_SELECTOR = 'section[data-testid="stMain"] > div:nth-child(1)'
15
  #MAIN_CONTENT_SELECTOR = 'section[data-testid="stAppViewContainer"] > div:nth-child(1)'
16
  # Alternative if the above doesn't work or if your content is further nested:
@@ -57,7 +57,7 @@ st.markdown(custom_css, unsafe_allow_html=True)
57
  st.logo(image="images/menu_book_60dp_75FBFD.png")
58
  #st.title("SBS V2.0 mapper")
59
  st.sidebar.header("SBS V2.0 mapper")
60
- st.sidebar.write("work in progress.")
61
  st.sidebar.text("Demo by JA-RAD")
62
 
63
  # --- PAGE SETUP ---
 
3
  import time
4
 
5
  # Inspect the header element, go to the "Computed" tab in styles, and find its height.
6
+ HEADER_HEIGHT = "60px" # EXAMPLE: Adjust this (e.g., "56px", "4rem")
7
  HEADER_SELECTOR = 'header[data-testid="stHeader"]'
8
 
9
  # ---- SELECTOR FOR THE MAIN CONTENT AREA THAT NEEDS PADDING ----
10
  # This targets the first direct div child of the stAppViewContainer,
11
  # which often holds the main scrollable content.
12
  #MAIN_CONTENT_SELECTOR = 'section[data-testid="stApp"]'
13
+ MAIN_CONTENT_SELECTOR = 'section[data-testid="stMainBlockContainer"]'
14
  #MAIN_CONTENT_SELECTOR = 'section[data-testid="stMain"] > div:nth-child(1)'
15
  #MAIN_CONTENT_SELECTOR = 'section[data-testid="stAppViewContainer"] > div:nth-child(1)'
16
  # Alternative if the above doesn't work or if your content is further nested:
 
57
  st.logo(image="images/menu_book_60dp_75FBFD.png")
58
  #st.title("SBS V2.0 mapper")
59
  st.sidebar.header("SBS V2.0 mapper")
60
+ st.sidebar.write("(work in progress)")
61
  st.sidebar.text("Demo by JA-RAD")
62
 
63
  # --- PAGE SETUP ---