georad commited on
Commit
634ab03
·
verified ·
1 Parent(s): 0c847b9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -21,7 +21,7 @@ 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
- MAIN_CONTENT_SELECTOR = 'section[data-testid="stMainBlockContainer"]'
25
  #MAIN_CONTENT_SELECTOR = 'section[data-testid="stAppViewContainer"] > div:nth-child(1)'
26
  # Alternative if the above doesn't work or if your content is further nested:
27
  #MAIN_CONTENT_SELECTOR = 'section[data-testid="stAppViewContainer"] .main-content-wrapper-class'
@@ -45,7 +45,7 @@ custom_css = f"""
45
  /* Adding padding to the main content area to prevent overlap with the sticky header */
46
  {MAIN_CONTENT_SELECTOR} {{
47
  padding-top: {HEADER_HEIGHT} !important;
48
- background-color: red !important;
49
  border-style: solid !important;
50
  border-color: red !important;
51
  }}
 
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="stMainBlockContainer"] > div:nth-child(1)'
25
  #MAIN_CONTENT_SELECTOR = 'section[data-testid="stAppViewContainer"] > div:nth-child(1)'
26
  # Alternative if the above doesn't work or if your content is further nested:
27
  #MAIN_CONTENT_SELECTOR = 'section[data-testid="stAppViewContainer"] .main-content-wrapper-class'
 
45
  /* Adding padding to the main content area to prevent overlap with the sticky header */
46
  {MAIN_CONTENT_SELECTOR} {{
47
  padding-top: {HEADER_HEIGHT} !important;
48
+ background-color: yellow !important;
49
  border-style: solid !important;
50
  border-color: red !important;
51
  }}