filament icon indicating copy to clipboard operation
filament copied to clipboard

Invalid tenant menu item dropdown panel stack order when sidebar collapsed

Open qoqn opened this issue 3 years ago • 4 comments

Package

filament/filament

Package Version

v3.0.12

Laravel Version

v10.17.1

Livewire Version

No response

PHP Version

8.2.8

Problem description

In multi tenant application, when using sidebarCollapsibleOnDesktop() option on panel and collapsing the sidebar in desktop the stack order is invalid, tenant menu items is inside (or behind?) the collapsed sidebar.

image

Expected behavior

Tenant menu (dropdown) should be above sidebar, viewable and clickable even on collapsed sidebar.

Steps to reproduce

Using this panel configuration, or the default tenantMenuItems() configuration (where the tenant selector exists)

return $panel
			// ... other settings
            ->sidebarCollapsibleOnDesktop()
			// ... other settings
            ->tenantMenuItems([
                MenuItem::make()
                    ->label('Settings')
                    ->icon('heroicon-m-cog-8-tooth'),
            ])
			// ... other settings

Reproduction repository

https://github.com/muoya

Relevant log output

No response

qoqn avatar Aug 09 '23 02:08 qoqn

No reproduction repo?

danharrin avatar Aug 09 '23 07:08 danharrin

@danharrin could we reopen the issue please ? I have a made a reproduction repo https://github.com/lamberttraccard/filament-issue

lamberttraccard avatar Aug 18 '23 06:08 lamberttraccard

Thanks 🙂

lamberttraccard avatar Aug 18 '23 06:08 lamberttraccard

Fixed in https://github.com/filamentphp/filament/commit/cfe9d6067413525739ef9eaab89b54e017d302f2.

zepfietje avatar Aug 21 '23 08:08 zepfietje