georad commited on
Commit
50133ea
·
verified ·
1 Parent(s): f2e7d73

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -9
app.py CHANGED
@@ -6,29 +6,32 @@ st.sidebar.title("SBS V2.0 mapper")
6
  st.sidebar.subheader("(work in progress)")
7
  st.sidebar.text("Demo by JA-RAD")
8
 
 
9
  st.markdown(
10
  """
11
  <style>
12
- .streamlit-expander header:first-child {
13
  position: fixed;
14
- top: 0px;
15
- left: 0px;
16
- right: 0px;
17
  z-index: 9999;
18
  background-color: rgba(255, 255, 255, 0.95); /* Optional background */
19
- padding: 10px 0; /* Optional padding */
20
- box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1); /* Optional shadow */
21
  }
22
  </style>
23
  """,
24
  unsafe_allow_html=True,
25
  )
26
 
27
- st.title("My Sticky Header App")
28
 
29
- st.write("Scroll down to see if the header remains at the top on Hugging Face!")
 
 
30
  for i in range(50):
31
- st.write(f"Some more content here: {i}")
32
 
33
 
34
  # --- PAGE SETUP ---
 
6
  st.sidebar.subheader("(work in progress)")
7
  st.sidebar.text("Demo by JA-RAD")
8
 
9
+
10
  st.markdown(
11
  """
12
  <style>
13
+ div[data-testid="stAppViewContainer"] > div:first-child {
14
  position: fixed;
15
+ top: 0;
16
+ left: 0;
17
+ right: 0;
18
  z-index: 9999;
19
  background-color: rgba(255, 255, 255, 0.95); /* Optional background */
20
+ padding: 10px 1rem; /* Optional padding */
21
+ box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Optional shadow */
22
  }
23
  </style>
24
  """,
25
  unsafe_allow_html=True,
26
  )
27
 
28
+ st.title("SBS Mapper") # Keep your title here
29
 
30
+ # Your Streamlit app content below this line
31
+ st.markdown("## Welcome to the SBS Mapper App!")
32
+ st.write("Scroll down to see if the header sticks now.")
33
  for i in range(50):
34
+ st.write(f"Some content: {i}")
35
 
36
 
37
  # --- PAGE SETUP ---