Replies: 4 comments
-
https://filamentphp.com/docs/3.x/panels/themes/#adding-a-logo |
Beta Was this translation helpful? Give feedback.
-
No solution for setting different heights for login logo and dashboard logo? |
Beta Was this translation helpful? Give feedback.
-
You can create a custom view and then add the logo in the following way
And something like this in the view:
|
Beta Was this translation helpful? Give feedback.
-
To use different sizes on different screens, you can use tailwindcss to detect classes of the parents and only then apply styles. For example: after login the header has a class of Given that you can write the following in a view (e.g. <div>
<svg class="[.fi-sidebar-header_&]:h-14 [.fi-simple-header_&]:h-20"></svg>
</div> and then register it in the PanelProvider as follows: $panel
->brandLogo(fn() => view('filament/brand-logo'))
->brandLogoHeight('auto') Important You need to have a custom theme already working, as the classes are not generated otherwise. this can also be used for different logos on different screens: <div>
<svg class="[.fi-sidebar-header_&]:hidden [.fi-simple-header_&]:block"></svg>
<svg class="[.fi-sidebar-header_&]:block [.fi-simple-header_&]:hidden"></svg>
</div> |
Beta Was this translation helpful? Give feedback.
-
Package
Panel builder
Package Version
^3.2
How can we help you?
Can we adjust the height of the logo in the dashboard (when logged)?
Or can we just have a dedicated function to load a different logo in the dashboard?
See screenshots below.
Beta Was this translation helpful? Give feedback.
All reactions