F
Filament5mo ago
Ayz

customize logo behaviour on desktop sidenav collapse

When the side nav is collapsed, I would like a smaller logo to still show to the left of the '>' sign. Can this be done through hooks/ style customization?
4 Replies
Dennis Koch
Dennis Koch5mo ago
Maybe you could inject one through CSS, but there isn't really much space for a logo anyway
awcodes
awcodes5mo ago
If your logo is an svg, you could potentially replace the expand icon with your logo.
Ayz
Ayz5mo ago
Alternative would be to (on collapse), pop the logo up to display in the top bar panel instead. But that seems tougher as I don't see an id attribute there at all Ok but then there would be no visual queue to expand How could this be done into the top bar instead, left justified to be to the right of the >
awcodes
awcodes5mo ago
You could use a render hook to put the logo in the top bar, then you’d have to find a way to show or hide it based on the sidebar’s state. Just not sure if that state is available outside of the sidebar itself.