Skip to content

st.latex with help tooltip is left aligned instead of center aligned #9682

@sfc-gh-jrieke

Description

@sfc-gh-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

st.latex is normally center aligned. But if you use the help tooltip in it, it incorrectly becomes left-aligned.

Reproducible Code Example

Open in Streamlit Cloud

import streamlit as st

st.latex(r"\int a x^2 \,dx")
st.latex(r"\int a x^2 \,dx", help="Hello!")

Steps To Reproduce

Run the app

Expected Behavior

Both are center aligned

Current Behavior

CleanShot 2024-10-18 at 14 06 42@2x

Is this a regression?

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

Debug info

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

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature:st.latexRelated to the `st.latex` elementstatus: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