georad commited on
Commit
241e0b7
·
verified ·
1 Parent(s): 0f2c708

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -9,7 +9,7 @@ import time
9
 
10
  # Use the developer tools to find your header's actual height.
11
  # Inspect the header element, go to the "Computed" tab in styles, and find its height.
12
- HEADER_HEIGHT = "15px" # EXAMPLE: Adjust this (e.g., "56px", "4rem")
13
 
14
  # ---- SELECTOR FOR THE HEADER ----
15
  # Try this first (common for recent Streamlit versions):
@@ -21,7 +21,8 @@ HEADER_SELECTOR = 'header[data-testid="stHeader"]'
21
  # ---- SELECTOR FOR THE MAIN CONTENT AREA THAT NEEDS PADDING ----
22
  # This targets the first direct div child of the stAppViewContainer,
23
  # which often holds the main scrollable content.
24
- MAIN_CONTENT_SELECTOR = 'section[data-testid="stMain"] > div:nth-child(1)'
 
25
  #MAIN_CONTENT_SELECTOR = 'section[data-testid="stAppViewContainer"] > div:nth-child(1)'
26
  # Alternative if the above doesn't work or if your content is further nested:
27
  #MAIN_CONTENT_SELECTOR = 'section[data-testid="stAppViewContainer"] .main-content-wrapper-class'
 
9
 
10
  # Use the developer tools to find your header's actual height.
11
  # Inspect the header element, go to the "Computed" tab in styles, and find its height.
12
+ HEADER_HEIGHT = "30px" # EXAMPLE: Adjust this (e.g., "56px", "4rem")
13
 
14
  # ---- SELECTOR FOR THE HEADER ----
15
  # Try this first (common for recent Streamlit versions):
 
21
  # ---- SELECTOR FOR THE MAIN CONTENT AREA THAT NEEDS PADDING ----
22
  # This targets the first direct div child of the stAppViewContainer,
23
  # which often holds the main scrollable content.
24
+ MAIN_CONTENT_SELECTOR = 'section[data-testid="stMain"]'
25
+ #MAIN_CONTENT_SELECTOR = 'section[data-testid="stMain"] > div:nth-child(1)'
26
  #MAIN_CONTENT_SELECTOR = 'section[data-testid="stAppViewContainer"] > div:nth-child(1)'
27
  # Alternative if the above doesn't work or if your content is further nested:
28
  #MAIN_CONTENT_SELECTOR = 'section[data-testid="stAppViewContainer"] .main-content-wrapper-class'