FilamentF
Filament12mo ago
frame

Style tenant dropdown when user only has access to a single tenant

I would like to remove hover effects and the arrow down icon if the user only has a single tenant. Is that possible? I am not using a tenant profile page or other tenant menu items.
Solution
My dumb ass doesn't know how to publish it so use this css instead
/* Style tenant menu button if no dropdown */

.fi-sidebar-nav-tenant-menu-ctn .fi-dropdown-trigger:only-child button.fi-tenant-menu-trigger {
    @apply bg-inherit cursor-auto;
}

.fi-sidebar-nav-tenant-menu-ctn .fi-dropdown-trigger:only-child svg[icon-alias="panels::tenant-menu.toggle-button"] {
    @apply invisible;
}
Was this page helpful?