Skip to content

Commit

Permalink
Fix popup streamlit modal
Browse files Browse the repository at this point in the history
  • Loading branch information
Jumitti committed Apr 26, 2024
1 parent db91039 commit 6cabea0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions TFinder-v1.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,8 +146,8 @@ def load_lottiefile(filepath: str):

# Help
st.sidebar.title("Help")
with st.sidebar.expander("Video tutorials"):
st.write('coming soon')
# with st.sidebar.expander("Video tutorials"):
# st.write('coming soon')

with st.sidebar.expander("Regulatory regions extractor"):
st.subheader("Gene ID:")
Expand Down
7 changes: 4 additions & 3 deletions streamlit_modal/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,15 +99,16 @@ def container(self):
""",
unsafe_allow_html=True
)

with st.container():
_container = st.container()
if self.title:
_container.markdown(
f"<h2>{self.title}</h2>", unsafe_allow_html=True)

close_ = st.button('X', key=f'{self.key}-close')
if close_:
self.close()
# close_ = st.button('X', key=f'{self.key}-close')
# if close_:
# self.close()

components.html(
f"""
Expand Down

0 comments on commit 6cabea0

Please sign in to comment.