-
Notifications
You must be signed in to change notification settings - Fork 4k
Closed
Labels
area:layoutRelated to layout and positioningRelated to layout and positioningfeature:st.feedbackRelated to the `st.feedback` widgetRelated to the `st.feedback` widgetgood first issueGood for newcomers to the codebaseGood for newcomers to the codebasepriority:P3Medium priorityMedium prioritystatus: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 expected
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
When setting a small width for st.feedback in pixels, it wraps the icons, e.g. here for stars:
This shouldn't happen, these icons should never wrap. If the width is too small, we should ignore it and set it to the minimum width, similar to what we do for height in st.text_area.
Reproducible Code Example
import streamlit as st
st.feedback("stars", width=10)Steps To Reproduce
Run the app.
Expected Behavior
Icons never wrap (no matter if stars/thumbs/faces).
Current Behavior
Icons wrap, see screenshot above.
Is this a regression?
- Yes, this used to work in a previous version.
Debug info
- Streamlit version: 1.47
- Python version:
- Operating System:
- Browser:
Additional Information
No response
github-actions and ivan-schinella
Metadata
Metadata
Assignees
Labels
area:layoutRelated to layout and positioningRelated to layout and positioningfeature:st.feedbackRelated to the `st.feedback` widgetRelated to the `st.feedback` widgetgood first issueGood for newcomers to the codebaseGood for newcomers to the codebasepriority:P3Medium priorityMedium prioritystatus: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 expected