Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sections not working correctly #54

Closed
Thunder7754 opened this issue Aug 4, 2023 · 7 comments
Closed

Sections not working correctly #54

Thunder7754 opened this issue Aug 4, 2023 · 7 comments

Comments

@Thunder7754
Copy link

Hey Guys,
I experienced a problem with the sections, with my personal project as well as with your examples. They get displayed as normal pages and when i click on them, i get redirected to the page above. I used both methods to create sections and the results were the same.

I am using streamlit 1.25.0 and st-pages 0.4.3

Thanks in advance!

@blackary
Copy link
Owner

Could you share an example repo which shows this issue?

@Thunder7754
Copy link
Author

This occured in the example projects in this repo for me as well.

@0ptimista
Copy link

0ptimista commented Aug 22, 2023

Same promblem, both on config file and directly call in app, and pages after section lose indent as well

@blackary
Copy link
Owner

I'm so sorry, I'm trying to reproduce this but struggling. Do you have an example repo where you are seeing this issue?

You can see in the example app https://st-pages-sections.streamlit.app/ that it's working well, even after I explicitly updated the version numbers in requirements.txt

@0ptimista
Copy link

I created a demo repo here https://github.com/0ptimista/stpage-test
Inside src folder when I run streamlit run stpage-test/home.py the Section part is clickable which shoud not.

@blackary
Copy link
Owner

Thanks for the example! That's very helpful. The main issue is that you have to call add_page_title() or add_indentation() on every page in order to add the indentation and make the Section not clickable, since that is done via CSS.

If you add those to every page, you should be good to go.

@0ptimista
Copy link

Oh! Thanks for replying! How can I miss the bottom of README!

It now act as it should be after add add_indentation() at every page!

Really helped me out!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants