georad commited on
Commit
a9042c3
·
verified ·
1 Parent(s): a322261

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -13
app.py CHANGED
@@ -6,17 +6,15 @@ st.sidebar.title("SBS V2.0 mapper")
6
  st.sidebar.subheader("(work in progress)")
7
  st.sidebar.text("Demo by JA-RAD")
8
 
9
- import streamlit as st
10
-
11
  st.markdown(
12
  """
13
  <style>
14
- div[data-testid="stAppViewContainer"] > div:first-child > div.stMarkdown {
15
- position: fixed;
16
  top: 0;
17
  left: 0;
18
  right: 0;
19
- z-index: 9999;
20
  background-color: rgba(255, 255, 255, 0.95); /* Optional background */
21
  padding: 10px 1rem; /* Optional padding */
22
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Optional shadow */
@@ -30,17 +28,10 @@ st.title("SBS Mapper") # Keep your title here
30
 
31
  # Your Streamlit app content below this line
32
  st.markdown("## Welcome to the SBS Mapper App!")
33
- st.write("Let's see if targeting the stMarkdown container works...")
34
  for i in range(50):
35
  st.write(f"More content: {i}")
36
 
37
- # --- PAGE SETUP ---
38
- type_text_page = st.Page(
39
- page="pages/type_text.py",
40
- title="SBS V2.0 mapper",
41
- icon=":material/keyboard:",
42
- default=True,)
43
-
44
  # --- NAVIGATION SETUP ---
45
  pg = st.navigation(pages=[type_text_page]) # WITHOUT SECTIONS
46
  #pg = st.navigation({"Chapter_Index": [start_page], "Demo": [type_text_page, upload_file_page], "About": [about_page]}) # WITH SECTIONS
 
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="stApp"] {
13
+ position: fixed !important;
14
  top: 0;
15
  left: 0;
16
  right: 0;
17
+ z-index: 9999 !important;
18
  background-color: rgba(255, 255, 255, 0.95); /* Optional background */
19
  padding: 10px 1rem; /* Optional padding */
20
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Optional shadow */
 
28
 
29
  # Your Streamlit app content below this line
30
  st.markdown("## Welcome to the SBS Mapper App!")
31
+ st.write("Trying to target the stApp container directly...")
32
  for i in range(50):
33
  st.write(f"More content: {i}")
34
 
 
 
 
 
 
 
 
35
  # --- NAVIGATION SETUP ---
36
  pg = st.navigation(pages=[type_text_page]) # WITHOUT SECTIONS
37
  #pg = st.navigation({"Chapter_Index": [start_page], "Demo": [type_text_page, upload_file_page], "About": [about_page]}) # WITH SECTIONS