Show alternate logo when sidebar is collapsed
As far as I can tell, this isn't possible. It looks like the logo is hidden by alpine if the sidebar is collapsed. I'd love to have the option to specify a logo for use in this case with something like
->iconLogo()
on the panel. Is this possible or does anyone know if someone is building this kind of functionality?9 Replies
This was part of v2 but removed because we change the collapsible logo. I don't think there is a proper way to add this again as the space is missing.
So it was mostly removed due to style reasons?
I'd be happy to make a new PR to make this possible if you think it would be considered
In v2 it worked because the collapse action was outside the nav bar. In v3 it was brought inside meaning there wasn’t enough room for both a logo and the trigger.
Why couldn't we just nudge the arrow over? This is extremely rough but something like this
I don’t remember all the reasoning toward the finally decision. I vaguely remember there being a lot of discussion around it in the repo if you maybe want to try to find it and read through it.
Ok, I'll see what I can find. Is it best to start a discussion in the ideas category for this?
Sure. To be completely honest, though, at this point in time with the work being done for v4 and the fact that we don’t have a definitive time for tailwind v4 stable release. I would be surprised if this was something that Dan would warrant as important enough to spend time on for v3, but a good discussion could potentially have reasonable bering towards v4.
Gotcha. Maybe I could find a way to release something as a plugin in the meantime
Go for it. Should be fairly simple with a custom stylesheet and a render hook. Just understand that a full logo never fits into a square layout.