Hide (not close) sidebar icon
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.
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"