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

st.set_page_config settings are not respected in other pages #98

Open
bjo opened this issue May 8, 2024 · 1 comment
Open

st.set_page_config settings are not respected in other pages #98

bjo opened this issue May 8, 2024 · 1 comment

Comments

@bjo
Copy link

bjo commented May 8, 2024

I have an application that sets the fields layout, page_icon and page_title in st.set_page_config().
However, when I navigate to other pages set up through show_pages(), these settings are ignored (i.e. layout is not 'wide' in those pages)

@James-Rocker
Copy link

James-Rocker commented May 31, 2024

This is due to the function add_page_title. My workaround is to import that function and then send you page config kwargs to that.

e.g.

add_page_title(
        add_icon=True,
        also_indent=True,
        hidden_pages=None,
        page_icon="https://53.fs1.hubspotusercontent-na1.net/hub/53/hubfs/image8-2.jpg?width=595&height=400&name=image8-2.jpg",
        layout="wide",
    )

Although the downside is it forces you to have a page title which you might not want

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

2 participants