Spaces:
Runtime error
Runtime error
Commit
·
9e5efc0
1
Parent(s):
99db214
scroll
Browse files- st_helpers.py +5 -1
st_helpers.py
CHANGED
@@ -14,7 +14,11 @@ with open("static/meta.html", 'r', encoding='utf-8') as f:
|
|
14 |
|
15 |
|
16 |
def make_header():
|
17 |
-
st.markdown('<script>
|
|
|
|
|
|
|
|
|
18 |
components.html(f"<style>{header_style_css}</style>{header_html}<script>{header_animate_js}</script>", height=260)
|
19 |
st.markdown(meta_html, unsafe_allow_html=True)
|
20 |
st.markdown(f"<style>{content_style_css}</style>", unsafe_allow_html=True) # apply css to the rest of the document
|
|
|
14 |
|
15 |
|
16 |
def make_header():
|
17 |
+
st.markdown('''<script>
|
18 |
+
var docs = document.getElementsByClassName("block-container");
|
19 |
+
for (var i = 0; i < docs.length; i++)
|
20 |
+
docs[i].style.overflow = "scroll";
|
21 |
+
</script>''', unsafe_allow_html=True)
|
22 |
components.html(f"<style>{header_style_css}</style>{header_html}<script>{header_animate_js}</script>", height=260)
|
23 |
st.markdown(meta_html, unsafe_allow_html=True)
|
24 |
st.markdown(f"<style>{content_style_css}</style>", unsafe_allow_html=True) # apply css to the rest of the document
|