Update app.py
Browse files
app.py
CHANGED
@@ -33,14 +33,14 @@ st.markdown("""
|
|
33 |
/* Adjust this value to be slightly more than the height of the Toolbar/Status bar (the sticky element) */
|
34 |
/* You will likely need to inspect the deployed app to find the exact height of this bar */
|
35 |
[data-testid="stAppViewContainer"] {
|
36 |
-
padding-top:
|
37 |
}
|
38 |
|
39 |
/* Adjust padding for the sidebar content as well */
|
40 |
/* This needs to account for the height of both the topmost bar AND the sticky second bar */
|
41 |
[data-testid="stSidebar"] {
|
42 |
/* Estimate height of topmost bar (~40px) + height of sticky bar (~50px) + default sidebar padding (~1rem) */
|
43 |
-
padding-top: calc(40px +
|
44 |
}
|
45 |
|
46 |
/* Ensure the main content block within the container also has correct top padding */
|
|
|
33 |
/* Adjust this value to be slightly more than the height of the Toolbar/Status bar (the sticky element) */
|
34 |
/* You will likely need to inspect the deployed app to find the exact height of this bar */
|
35 |
[data-testid="stAppViewContainer"] {
|
36 |
+
padding-top: 3.75rem; /* Estimate height of the second bar (~50px). Adjust after inspection. */
|
37 |
}
|
38 |
|
39 |
/* Adjust padding for the sidebar content as well */
|
40 |
/* This needs to account for the height of both the topmost bar AND the sticky second bar */
|
41 |
[data-testid="stSidebar"] {
|
42 |
/* Estimate height of topmost bar (~40px) + height of sticky bar (~50px) + default sidebar padding (~1rem) */
|
43 |
+
padding-top: calc(40px + 3.75rem + 1rem); /* Adjust pixel values after inspection */
|
44 |
}
|
45 |
|
46 |
/* Ensure the main content block within the container also has correct top padding */
|