The sidebar contains the menu and can stay visible unless collapsed by the user. It can stay open all the time while the user navigates through the app.
At the same time, there is a minimalistic header containing the notifications icon, a search menu, page title etc. I don’t know if the bread crumbs are in the header in the example above, but it could be a good idea to include it as well.
But the sidebar is full-height and the header starts after the sidebar.
@Max, thank you very much for providing a fully-working code snippet!
Indeed it works! For the moment this messes up the builder when the AI chat is open, but that is not important.
Is there a way to make the sidebar width dynamic ?
It seems that nb-sidebar:is(.expanded) is deactivating UIBakery’s width property for the sidebar.
The idea being to have a variable that saves the state of the sidebar (fully-expanded vs minimal) to be able to show just icons instead of icons+text on my menu buttons.
No problem, feel free to ask further if something doesn’t work right or you need help
As for the AI chat, I’m unable to reproduce the issue. I tried with the on-prem and cloud version, neither broke. Pretty sure this doesn’t have anything to do with the CSS posted here, since that only modifies inside the editor container and the AI chat is part of a different container.
All components, containers, etc. (the editor) are inside the .scrollable-container, but the AI chat is inside the .cdk-overlay-container.
So you might want to check if you modified anything else. I think things like modals, popup forms, notifications and so on are also inside the .cdk-overlay-container, so if you applied custom code, you might want to check that out.