chainlit icon indicating copy to clipboard operation
chainlit copied to clipboard

Hide (not close) sidebar icon

Open martrdev opened this issue 5 months ago • 1 comments

Is your feature request related to a problem? Please describe.

I am trying to deploy an app that has persisted data but doesn't automatically allow the users to check their data history.

Describe the solution you'd like

Add a variable in the config.toml file that allows to hide the icon, e.g. default_sidebar_state = "hidden"

The outcome should show the chainlit UI without the sidebar icon but the application would still be able to persist data.

martrdev avatar Aug 28 '25 15:08 martrdev

My current workaround:

Currently the sidebar css element is called #sidebar-trigger-button.

So in my case, to hide the sidebar button I had to add:

#sidebar-trigger-button {
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

to my custom style sheet (test.css in the folder public), which had to be specified in the config.toml:

custom_css = "/public/test.css"

in the same file I also specified

default_sidebar_state = "closed"

martrdev avatar Aug 28 '25 16:08 martrdev