georad commited on
Commit
c43121c
·
verified ·
1 Parent(s): 539678a

Update pages/type_text.py

Browse files
Files changed (1) hide show
  1. pages/type_text.py +2 -11
pages/type_text.py CHANGED
@@ -12,16 +12,10 @@ os.getenv("HF_TOKEN")
12
  import time
13
  import base64
14
 
15
- st.markdown("---")
16
- st.subheader("Alternative Approach Using Components")
17
- st.write("""
18
- If the iframe approach doesn't work for you, try this alternate solution:
19
 
20
- ```python
21
- import streamlit as st
22
 
23
  # First, inject the CSS
24
- st.markdown('''
25
  <style>
26
  /* Create a fixed container at the top */
27
  .fixed-container {
@@ -40,7 +34,7 @@ st.markdown('''
40
  padding-top: 7rem; /* Adjust this value based on your status height */
41
  }
42
  </style>
43
- ''', unsafe_allow_html=True)
44
 
45
  # Create a container for the fixed status
46
  st.markdown('<div class="fixed-container">', unsafe_allow_html=True)
@@ -58,10 +52,7 @@ for i in range(30):
58
  st.write(f"Content row {i}")
59
 
60
  st.markdown('</div>', unsafe_allow_html=True)
61
- ```
62
 
63
- Note that this approach may require adjustment based on your specific Streamlit version and layout.
64
- """)
65
 
66
  #hide_streamlit_style = """
67
  # <style>
 
12
  import time
13
  import base64
14
 
 
 
 
 
15
 
 
 
16
 
17
  # First, inject the CSS
18
+ st.markdown(
19
  <style>
20
  /* Create a fixed container at the top */
21
  .fixed-container {
 
34
  padding-top: 7rem; /* Adjust this value based on your status height */
35
  }
36
  </style>
37
+ , unsafe_allow_html=True)
38
 
39
  # Create a container for the fixed status
40
  st.markdown('<div class="fixed-container">', unsafe_allow_html=True)
 
52
  st.write(f"Content row {i}")
53
 
54
  st.markdown('</div>', unsafe_allow_html=True)
 
55
 
 
 
56
 
57
  #hide_streamlit_style = """
58
  # <style>