Logo in Sidebar
Hi,
I have a brand logo which is set using
->brandLogo()
on the AppPanelProvider
and I also have the sidebar set as collapsable using ->sidebarCollapsibleOnDesktop()
However, when I collapse the sidebar, the logo disappears. I'd expect it to stay. I've looked in the docs but can't find anything related.
Any ideas on how to keep it showing even when collapsed?
See attached screenshots
Thanks7 Replies
I was wondering the same thing or better yet; can you add a mobile logo for when nav is collapsed?
Agree this would be better to have a desktop and mobile logo. That means you could have a full logo on desktop and say just an icon on mobile.
@Zep Fietje any reason why we haven't? We could have a brandLogoClosed() type too?
Because it would break the layout. You still have to have a button to open it. And there’s only room for one button in this particular use case.
The header isn't used on a mobiles really is it? So can the close icon not be offset to the right?
The pictures provided are showing the collapsible on desktop option. That’s what I was referring to.
It is possible to achieve this using Render Hooks.
I'm using "topNavigation" so I've added the logo using "TOPBAR_START" and the menu button using "TOPBAR_END".
The original menu button was hidden with CSS hooks