Skip to content

st.feedback shouldn't wrap #12068

@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

When setting a small width for st.feedback in pixels, it wraps the icons, e.g. here for stars:

Image

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

Metadata

Metadata

Assignees

Labels

area:layoutRelated to layout and positioningfeature:st.feedbackRelated to the `st.feedback` widgetgood first issueGood for newcomers to the codebasepriority:P3Medium prioritystatus:confirmedBug has been confirmed by the Streamlit teamtype:bugSomething isn't working as expected

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions