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 ```css /* 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;...
Jump to solution
5 Replies
toeknee
toeknee2w ago
You can do it by overriding the tenant menu or submitting a PR to add that behavour Dan might accept it as it makes sense
frame
frameOP2w ago
Thanks, you mean publishing tenant-menu.blade.php and editing it?
toeknee
toeknee2w ago
yeah
Solution
frame
frame7d ago
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;
}
/* 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;
}
toeknee
toeknee7d ago
That's a better solution tbh.

Did you find this page helpful?