-
Notifications
You must be signed in to change notification settings - Fork 4.2k
st.image in st.container with horizontal_alignment is always left-aligned #12435
Copy link
Copy link
Closed
Closed
Copy link
Labels
area:layoutRelated to layout and positioningRelated to layout and positioningfeature:st.containerRelated to the `st.container` elementRelated to the `st.container` elementfeature:st.imageRelated to the `st.image` elementRelated to the `st.image` elementpriority:P2Medium-high priority - fix within one monthMedium-high priority - fix within one monthstatus: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
Metadata
Metadata
Assignees
Labels
area:layoutRelated to layout and positioningRelated to layout and positioningfeature:st.containerRelated to the `st.container` elementRelated to the `st.container` elementfeature:st.imageRelated to the `st.image` elementRelated to the `st.image` elementpriority:P2Medium-high priority - fix within one monthMedium-high priority - fix within one monthstatus: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
Checklist
Summary
When using
st.imagein anst.containerwithhorizontal_alignment="center"orhorizontal_alignment="right", the image is always left-aligned.Reproducible Code Example
Steps To Reproduce
Run the app.
Expected Behavior
Image is center-aligned.
Current Behavior
Image is left-aligned. Note that the button is correctly center-aligned. This also persists for all different values of
widthonst.image.Is this a regression?
Debug info
Additional Information
No response