Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Top bar background doesn't show up #11785

@jrieke

Description

@jrieke

Checklist

  • I have searched the existing issues for similar issues.
  • I added a very descriptive title to this issue.
  • I have provided sufficient information below to help reproduce this issue.

Summary

The white background of the top bar should show up as soon as it contains any element (e.g. st.logo, the sidebar expand/collapse icon, top nav, the toolbar buttons on the right, or the app menu). But in the mega tester app, it's hidden if the sidebar is expanded.

Reproducible Code Example

Steps To Reproduce

  1. Just start a basic Streamlit app or go to the mega tester app.
  2. Expand the sidebar

Expected Behavior

Top bar has white background.

Current Behavior

Top bar has no background, which makes the toolbar buttons overlap the content:

Image

Note that a) the top bar has a white background if the sidebar is collapsed (probably because of st.logo) and b) the top bar should not have a white background if it doesn't contain anything (e.g. if there's no st.logo, no sidebar, the app menu and toolbar buttons are hidden via config options or the embed parameter).

Is this a regression?

  • Yes, this used to work in a previous version.

Debug info

  • Streamlit version: 1.46
  • Python version:
  • Operating System:
  • Browser:

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature:multipage-appsRelated to multipage app navigationfeature:st.navigationRelated to `st.navigation`priority:P2Medium-high priority - fix within one monthstatus:confirmedBug has been confirmed by the Streamlit teamtype:bugSomething isn't working as expectedtype:regressionThis bug is a regression from previous behavior

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions