F
Filament10mo ago
Luiz

How to show brand logo when sidebar is collapsed on desktop?

Is there an away to show the brand logo when the sidebar is collapsed?
No description
14 Replies
Patrick Boivin
Patrick Boivin10mo ago
I think some custom CSS may be the simplest way.
toeknee
toeknee10mo ago
Not out of the box.
Luiz
LuizOP10mo ago
Can you guys direct me where I should change ? :3
awcodes
awcodes10mo ago
How would a logo even fit there with the expand icon too?
Luiz
LuizOP10mo ago
My first thought was to put them side by side We have two images for the logo. One for the expanded menu and a small one for the collapsed version
awcodes
awcodes10mo ago
Even side by side, they aren’t going to fit. The collapse icon is the same width as the sidebar icons. Idk.
Yuvraj Timalsina
Yuvraj Timalsina10mo ago
I think it was available in filamentphp v2.
Dennis Koch
Dennis Koch10mo ago
It was but the layout changed and the space is missing now.
toeknee
toeknee10mo ago
I had suggested the arrow icon should reside in the header on the right, which is clickable and the menu icon is the logo. It can be done now with some hacky CSS but it's not ideall
Yuvraj Timalsina
Yuvraj Timalsina10mo ago
Do we have a quick workaround? 🫡
Dennis Koch
Dennis Koch10mo ago
Not really.
Luiz
LuizOP10mo ago
I still looking around this when I have the free time and also trying to find an way to the transition between collasped and expanded going more smooth
w5m
w5m8mo ago
Would an alternative solution be to move the brand logo out of the sidebar (the aside element) and into the topbar div element (after the expand & collapse sidebar buttons in the nav sub-element)?
w5m
w5m7mo ago
GitHub
Proposal: add brandLogoInTopBar() method to Panel component by ...
Description Adding a brandLogoInTopBar() method to the Panel component is proposed, which has the effect of hiding the brand logo in the sidebar and instead showing it in the topbar (after the &quo...

Did you find this page helpful?