Skip to content

fix(stapp): use Streamlit-min height for compact text_area#694

Open
Solaris-star wants to merge 1 commit into
lsdefine:mainfrom
Solaris-star:fix/680-streamlit-textarea-min-height
Open

fix(stapp): use Streamlit-min height for compact text_area#694
Solaris-star wants to merge 1 commit into
lsdefine:mainfrom
Solaris-star:fix/680-streamlit-textarea-min-height

Conversation

@Solaris-star

Copy link
Copy Markdown
Contributor

Summary

Fixes #680

frontends/stapp.py used st.text_area(..., height=1), which crashes Streamlit 1.29+ with:

StreamlitAPIException: Invalid height 1px for st.text_area - must be at least 68 pixels.

Change

  • height=1 -> height=68

Nearby CSS still compresses the visual height; this only satisfies Streamlit API minimum.

Testing

  • Inspected the single call site in frontends/stapp.py
  • Confirmed no other height=1 text_area usages in the repo

Newer Streamlit rejects height=1 (min 68px). Keep the existing CSS that
visually compresses the control, but pass a legal height value.

Fixes lsdefine#680

Signed-off-by: Solaris-star <solaris@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

st.text_area height=1 crashes on newer Streamlit (min 68px required)

2 participants