Update app.py
Browse files
app.py
CHANGED
@@ -6,6 +6,31 @@ st.sidebar.title("SBS V2.0 mapper")
|
|
6 |
st.sidebar.subheader("(work in progress)")
|
7 |
st.sidebar.text("Demo by JA-RAD")
|
8 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
9 |
# --- PAGE SETUP ---
|
10 |
type_text_page = st.Page(
|
11 |
page="pages/type_text.py",
|
|
|
6 |
st.sidebar.subheader("(work in progress)")
|
7 |
st.sidebar.text("Demo by JA-RAD")
|
8 |
|
9 |
+
st.markdown(
|
10 |
+
"""
|
11 |
+
<style>
|
12 |
+
div[data-testid="stToolbar"] {
|
13 |
+
position: fixed;
|
14 |
+
top: 0px;
|
15 |
+
width: 100%;
|
16 |
+
z-index: 9999; /* Ensure it stays on top of other elements */
|
17 |
+
background-color: rgba(255, 255, 255, 0.95); /* Optional: Add a background color and transparency */
|
18 |
+
padding: 10px 0; /* Optional: Add some padding */
|
19 |
+
box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1); /* Optional: Add a subtle shadow */
|
20 |
+
}
|
21 |
+
</style>
|
22 |
+
""",
|
23 |
+
unsafe_allow_html=True,
|
24 |
+
)
|
25 |
+
|
26 |
+
st.title("My Sticky Header App")
|
27 |
+
|
28 |
+
st.write("Scroll down to see the header remain at the top!")
|
29 |
+
for i in range(50):
|
30 |
+
st.write(f"Some content here: {i}")
|
31 |
+
|
32 |
+
|
33 |
+
|
34 |
# --- PAGE SETUP ---
|
35 |
type_text_page = st.Page(
|
36 |
page="pages/type_text.py",
|