F
Filament7mo 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 Boivin7mo ago
I think some custom CSS may be the simplest way.
toeknee
toeknee7mo ago
Not out of the box.
Luiz
LuizOP7mo ago
Can you guys direct me where I should change ? :3
awcodes
awcodes7mo ago
How would a logo even fit there with the expand icon too?
Luiz
LuizOP7mo 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
awcodes7mo 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
I think it was available in filamentphp v2.
Dennis Koch
Dennis Koch7mo ago
It was but the layout changed and the space is missing now.
toeknee
toeknee7mo 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
Do we have a quick workaround? 🫡
Dennis Koch
Dennis Koch7mo ago
Not really.
Luiz
LuizOP7mo 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
w5m4mo 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
w5m4mo 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...
Want results from more Discord servers?
Add your server