Chainlit / chainlit

Build Conversational AI in minutes ⚡️
https://docs.chainlit.io
Apache License 2.0
7.28k stars 958 forks source link

Hide human feedback buttons when persistence is disabled #1210

Open marty-sullivan opened 3 months ago

marty-sullivan commented 3 months ago

I am not planning on using the Literal AI integration. However, even with data persistence disabled, the human feedback buttons show up in the UI and cause an error if the user interacts with them. Is there a way I can hide or disable these buttons?

JaredChung commented 2 months ago

In a similar situation, could we add back the ability to disable the feedback buttons.

RyoSatoW commented 2 months ago

I have hidden the feedback buttons using this way.

public/style.css

.css-1d7zxcn {
    display: none !important;
}
Somasundaram-Palaniappan commented 2 months ago

I have hidden the feedback buttons using this way.

public/style.css

.css-1d7zxcn {
    display: none !important;
}

The css identifier was not exactly the same for me. But the idea worked like a charm !