Update app.py
Browse files
app.py
CHANGED
@@ -5,7 +5,7 @@ def add_sticky_header_css():
|
|
5 |
st.markdown("""
|
6 |
<style>
|
7 |
/* Make Streamlit's toolbar sticky */
|
8 |
-
[data-testid="
|
9 |
position: fixed;
|
10 |
top: 0;
|
11 |
right: 0;
|
@@ -26,18 +26,6 @@ def add_sticky_header_css():
|
|
26 |
width: 100%;
|
27 |
}
|
28 |
|
29 |
-
/* Make Streamlit's stMainMenu sticky */
|
30 |
-
[data-testid="stMainMenu"] {
|
31 |
-
position: fixed;
|
32 |
-
bottom: 0;
|
33 |
-
right: 0;
|
34 |
-
z-index: 1000;
|
35 |
-
background-color: purple;
|
36 |
-
padding: 5px;
|
37 |
-
border-top: 1px solid #f0f0f0;
|
38 |
-
width: 100%;
|
39 |
-
}
|
40 |
-
|
41 |
/* Add padding to main content to prevent overlap with fixed header */
|
42 |
.main .block-container {
|
43 |
padding-top: 25rem;
|
|
|
5 |
st.markdown("""
|
6 |
<style>
|
7 |
/* Make Streamlit's toolbar sticky */
|
8 |
+
[data-testid="stMainMenu"] {
|
9 |
position: fixed;
|
10 |
top: 0;
|
11 |
right: 0;
|
|
|
26 |
width: 100%;
|
27 |
}
|
28 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
29 |
/* Add padding to main content to prevent overlap with fixed header */
|
30 |
.main .block-container {
|
31 |
padding-top: 25rem;
|