Update app.py
Browse files
app.py
CHANGED
@@ -23,9 +23,9 @@ HEADER_SELECTOR = 'header[data-testid="stHeader"]'
|
|
23 |
# which often holds the main scrollable content.
|
24 |
#MAIN_CONTENT_SELECTOR = 'section[data-testid="stAppViewContainer"] > 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 |
-
|
29 |
# MAIN_CONTENT_SELECTOR = '.main .block-container' # A more general selector for block-container
|
30 |
|
31 |
custom_css = f"""
|
@@ -36,7 +36,6 @@ custom_css = f"""
|
|
36 |
position: sticky !important;
|
37 |
top: 0 !important;
|
38 |
z-index: 9999 !important; /* Very high z-index */
|
39 |
-
#background-color: green;
|
40 |
background-color: #90EE90 !important; /* Or your app's header background color */
|
41 |
/* Add a subtle shadow to make it feel more distinct when content scrolls under */
|
42 |
/* box-shadow: 0 2px 4px -1px rgba(0,0,0,0.1); */
|
|
|
23 |
# which often holds the main scrollable content.
|
24 |
#MAIN_CONTENT_SELECTOR = 'section[data-testid="stAppViewContainer"] > 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"""
|
|
|
36 |
position: sticky !important;
|
37 |
top: 0 !important;
|
38 |
z-index: 9999 !important; /* Very high z-index */
|
|
|
39 |
background-color: #90EE90 !important; /* Or your app's header background color */
|
40 |
/* Add a subtle shadow to make it feel more distinct when content scrolls under */
|
41 |
/* box-shadow: 0 2px 4px -1px rgba(0,0,0,0.1); */
|