Update app.py
Browse files
app.py
CHANGED
@@ -9,8 +9,8 @@ HEADER_SELECTOR = 'header[data-testid="stHeader"]'
|
|
9 |
#MAIN_CONTENT_SELECTOR = 'section[data-testid="stMain"]'
|
10 |
#MAIN_CONTENT_SELECTOR = 'section[data-testid="stMain"] > div:nth-child(1)'
|
11 |
#MAIN_CONTENT_SELECTOR = 'section[data-testid="stMainBlockContainer"]'
|
12 |
-
MAIN_CONTENT_SELECTOR = 'section[data-testid="stAppViewContainer"]'
|
13 |
-
|
14 |
# Alternative if the above doesn't work or if your content is further nested:
|
15 |
#MAIN_CONTENT_SELECTOR = 'section[data-testid="stAppViewContainer"] .main-content-wrapper-class'
|
16 |
# Or, very commonly, Streamlit wraps main content in a div with class "block-container":
|
@@ -35,7 +35,7 @@ custom_css = f"""
|
|
35 |
|
36 |
/* Adding padding to the main content area to prevent overlap with the sticky header */
|
37 |
{MAIN_CONTENT_SELECTOR} {{
|
38 |
-
padding-top:
|
39 |
background-color: yellow !important;
|
40 |
#border-style: solid !important;
|
41 |
#border-color: red !important;
|
|
|
9 |
#MAIN_CONTENT_SELECTOR = 'section[data-testid="stMain"]'
|
10 |
#MAIN_CONTENT_SELECTOR = 'section[data-testid="stMain"] > div:nth-child(1)'
|
11 |
#MAIN_CONTENT_SELECTOR = 'section[data-testid="stMainBlockContainer"]'
|
12 |
+
#MAIN_CONTENT_SELECTOR = 'section[data-testid="stAppViewContainer"]'
|
13 |
+
MAIN_CONTENT_SELECTOR = 'section[data-testid="stAppViewContainer"] > div:nth-child(1)'
|
14 |
# Alternative if the above doesn't work or if your content is further nested:
|
15 |
#MAIN_CONTENT_SELECTOR = 'section[data-testid="stAppViewContainer"] .main-content-wrapper-class'
|
16 |
# Or, very commonly, Streamlit wraps main content in a div with class "block-container":
|
|
|
35 |
|
36 |
/* Adding padding to the main content area to prevent overlap with the sticky header */
|
37 |
{MAIN_CONTENT_SELECTOR} {{
|
38 |
+
padding-top: 10px /* {HEADER_HEIGHT} !important; */
|
39 |
background-color: yellow !important;
|
40 |
#border-style: solid !important;
|
41 |
#border-color: red !important;
|