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

Set sidebar min-width to prevent st.logo from hiding the X to close it #8707

Open
3 of 4 tasks
sfc-gh-dmatthews opened this issue May 18, 2024 · 1 comment
Open
3 of 4 tasks
Labels
feature:st.logo feature:st.sidebar status:confirmed Bug has been confirmed by the Streamlit team type:bug Something isn't working

Comments

@sfc-gh-dmatthews
Copy link
Contributor

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

When using st.logo, the X to close the sidebar cannot go further left than the right edge of the logo. However, the sidebar minimum width is smaller than the logo's maximum width, which means the X to close the sidebar may be hidden.

Reproducible Code Example

import streamlit as st

st.logo("logo.png")
st.sidebar.write("A")

Steps To Reproduce

Use a logo with an aspect ratio of 10:1 to render a 240px by 24px logo in the sidebar.

Expected Behavior

The X to close the sidebar should always be accessible.

Current Behavior

2024-05-17_19-27-27 2024-05-17_19-10-45

Is this a regression?

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

Debug info

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

Additional Information

No response

@sfc-gh-dmatthews sfc-gh-dmatthews added type:bug Something isn't working status:needs-triage Has not been triaged by the Streamlit team labels May 18, 2024
Copy link

If this issue affects you, please react with a 👍 (thumbs up emoji) to the initial post.

Your feedback helps us prioritize which bugs to investigate and address first.

Visits

@LukasMasuch LukasMasuch added status:confirmed Bug has been confirmed by the Streamlit team feature:st.sidebar feature:st.logo and removed status:needs-triage Has not been triaged by the Streamlit team labels May 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature:st.logo feature:st.sidebar status:confirmed Bug has been confirmed by the Streamlit team type:bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants