Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

toast is blocked by chat_input with wide page layout #7115

Closed
3 of 4 tasks
liunux4odoo opened this issue Aug 4, 2023 · 2 comments · Fixed by #7204
Closed
3 of 4 tasks

toast is blocked by chat_input with wide page layout #7115

liunux4odoo opened this issue Aug 4, 2023 · 2 comments · Fixed by #7204
Assignees
Labels
feature:st.chat_input feature:st.toast priority:P2 status:confirmed Bug has been confirmed by the Streamlit team type:bug Something isn't working

Comments

@liunux4odoo
Copy link

liunux4odoo commented Aug 4, 2023

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

with streamlit==1.25.0, the toast is shown on the bottom right corner, and will be blocked by chat_input when set page layout to "wide".

Reproducible Code Example

import streamlit as st
import time


st.set_page_config(layout="wide")
st.toast("welcome to chat 1.\n\nthis is second line.\n\nthis is third line.")
prompt = st.chat_input("input here")
time.sleep(1)
st.toast("welcome to chat 2.\n\nthis is second line.\n\nthis is third line.")

Steps To Reproduce

No response

Expected Behavior

toast should have the highest z-level when rendered so it would not be blocked by other elements.

Current Behavior

No response

Is this a regression?

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

Debug info

  • Streamlit version: 1.25.0
  • Python version: 3.10
  • Operating System: windows
  • Browser: ms-edge

Additional Information

No response

@liunux4odoo liunux4odoo added status:needs-triage Has not been triaged by the Streamlit team type:bug Something isn't working labels Aug 4, 2023
@kajarenc
Copy link
Collaborator

kajarenc commented Aug 4, 2023

Hey @liunux4odoo and thank you for opening this issue.

I was able to reproduce this code issue.

@mayagbarnes / @LukasMasuch (I am not sure whom to mention, since bug happens on the overlap of st.chat_input and st.toast widgets in wide mode :) )

@kajarenc kajarenc added status:confirmed Bug has been confirmed by the Streamlit team priority:P2 feature:st.chat_input feature:st.toast and removed status:needs-triage Has not been triaged by the Streamlit team labels Aug 4, 2023
@sfc-gh-jcarroll
Copy link
Collaborator

This can also happen in normal mode if the browser width isn't wide enough. It's quite annoying

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature:st.chat_input feature:st.toast priority:P2 status:confirmed Bug has been confirmed by the Streamlit team type:bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants