streamlit / streamlit

Streamlit — A faster way to build and share data apps.

Home Page:https://streamlit.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Long exception message overflows the red `st.exception` box

jrieke opened this issue · comments

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

If you have a long exception message, it overflows the red box below:
CleanShot 2024-11-08 at 14 44 15

Reproducible Code Example

import streamlit as st

raise RuntimeError("jsldfklasjlkdfklsdfjklkjlsdfsdfsdfsdfsdfsdfsdfsdfklsdfkljsdklfjskdjlfkjlsdfkl")

Steps To Reproduce

Run the app above. See playground here.

Expected Behavior

Text breaks to next line, similar to if you use e.g. st.warning with a long string:
CleanShot 2024-11-08 at 14 45 36

Current Behavior

See screenshot above.

Is this a regression?

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

Debug info

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

Additional Information

No response

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