georad commited on
Commit
7573a94
·
verified ·
1 Parent(s): 1ddeab8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
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
- #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,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: 15px /* {HEADER_HEIGHT} !important; */
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;