Skip to content

UI displays two vertical scrollbars with enabled latex rendering #2949

Description

@tjroamer

Describe the bug
When latex rendering is set to true in config.toml, UI displayed two vertical scrollbars

To Reproduce
Steps to reproduce the behavior:

  1. Set latex=true in config.toml
  2. Create an app.py, send a message with latex equation, here my program:
import chainlit as cl
@cl.on_message
async def main(message: cl.Message):
    await cl.Message(
        content="Here is the quadratic formula:\n$$x = \\frac{-b \\pm \\sqrt{b^2 - 4ac}}{2a}$$"
    ).send()
  1. Start the chainlit
  2. Send the message a couple of times until the scrollbar appears
  3. Two scrollbars show up on the right hand side

Expected behavior
Expected to only see one vertical scrollbar

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: Windows 11
  • Browser: chrome, edge
  • Version: 2.11.1

Smartphone (please complete the following information):

  • n.a.

Additional context

There is a related issue: #2003

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingfrontendPertains to the frontend.needs-triage

    Type

    No fields configured for Bug.

    Projects

    Status
    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions