How to check the sidebar state

is there a way to check if the sidebar is expanded or collapsed?

Not easily. The backend (Python) has no idea what state the sidebar is in. You could probably detect it using a JavaScript function and execute some JavaScript in response. However, if you want to pass that information back to Python, that’s a much heavier, custom-component problem.

Sounded like, yeah. I might create a component for that. Thanks for the answer!

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.