-
Notifications
You must be signed in to change notification settings - Fork 4k
Closed
Labels
priority:P1High priority - fix within two weeksHigh priority - fix within two weeksstatus:confirmedBug has been confirmed by the Streamlit teamBug has been confirmed by the Streamlit teamtype:bugSomething isn't working as expectedSomething isn't working as expectedtype:regressionThis bug is a regression from previous behaviorThis bug is a regression from previous behavior
Description
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
A button gets full width if it has a help/tooltip defined.
Reproducible Code Example
import streamlit as st
st.button("A") # Has expected width.
st.button("B", help="tooltip") # Has unexpected 100% width.Steps To Reproduce
Try the above code example.
Expected Behavior
Button B should have width: auto, just like button A.
Current Behavior
Button B has width: 100%.
Is this a regression?
- Yes, this used to work in a previous version.
Debug info
- Streamlit version: 1.43.0
- Python version: 3.11.9
- Operating System: MacOS
- Browser: Chrome
Additional Information
This is a regression from 1.43.0. It used to work as expected in 1.42.2.
github-actions, gabegma, JosephMarinier and lukasmasuch
Metadata
Metadata
Assignees
Labels
priority:P1High priority - fix within two weeksHigh priority - fix within two weeksstatus:confirmedBug has been confirmed by the Streamlit teamBug has been confirmed by the Streamlit teamtype:bugSomething isn't working as expectedSomething isn't working as expectedtype:regressionThis bug is a regression from previous behaviorThis bug is a regression from previous behavior