Update app.py
Browse files
app.py
CHANGED
@@ -1,17 +1,14 @@
|
|
1 |
import streamlit as st
|
2 |
|
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="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:
|
17 |
#MAIN_CONTENT_SELECTOR = 'section[data-testid="stAppViewContainer"] .main-content-wrapper-class'
|
|
|
1 |
import streamlit as st
|
2 |
|
|
|
|
|
3 |
# Inspect the header element, go to the "Computed" tab in styles, and find its height.
|
4 |
HEADER_HEIGHT = "60px" # EXAMPLE: Adjust this (e.g., "56px", "4rem")
|
5 |
HEADER_SELECTOR = 'header[data-testid="stHeader"]'
|
6 |
|
7 |
# ---- SELECTOR FOR THE MAIN CONTENT AREA THAT NEEDS PADDING ----
|
8 |
+
MAIN_CONTENT_SELECTOR = 'section[data-testid="stMain"]'
|
9 |
+
#MAIN_CONTENT_SELECTOR = 'section[data-testid="stMain"] > div:nth-child(1)'
|
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="stAppViewContainer"] > div:nth-child(1)'
|
13 |
# Alternative if the above doesn't work or if your content is further nested:
|
14 |
#MAIN_CONTENT_SELECTOR = 'section[data-testid="stAppViewContainer"] .main-content-wrapper-class'
|