Update app.py
Browse files
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 = "
|
13 |
|
14 |
# ---- SELECTOR FOR THE HEADER ----
|
15 |
# Try this first (common for recent Streamlit versions):
|
@@ -21,12 +21,12 @@ 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 |
-
|
25 |
# Alternative if the above doesn't work or if your content is further nested:
|
26 |
#MAIN_CONTENT_SELECTOR = 'section[data-testid="stAppViewContainer"] .main-content-wrapper-class'
|
27 |
# Or, very commonly, Streamlit wraps main content in a div with class "block-container":
|
28 |
#MAIN_CONTENT_SELECTOR = 'section[data-testid="stAppViewContainer"] .block-container'
|
29 |
-
MAIN_CONTENT_SELECTOR = '.main .block-container' # A more general selector for block-container
|
30 |
|
31 |
custom_css = f"""
|
32 |
<style>
|
|
|
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 = "6px" # 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"] > div:nth-child(1)'
|
25 |
# Alternative if the above doesn't work or if your content is further nested:
|
26 |
#MAIN_CONTENT_SELECTOR = 'section[data-testid="stAppViewContainer"] .main-content-wrapper-class'
|
27 |
# Or, very commonly, Streamlit wraps main content in a div with class "block-container":
|
28 |
#MAIN_CONTENT_SELECTOR = 'section[data-testid="stAppViewContainer"] .block-container'
|
29 |
+
#MAIN_CONTENT_SELECTOR = '.main .block-container' # A more general selector for block-container
|
30 |
|
31 |
custom_css = f"""
|
32 |
<style>
|