mirror of
https://github.com/tiennm99/coolify.git
synced 2026-08-20 06:23:23 +00:00
fix(ui): fix subscription access and mobile menu positioning
Add the subscription link for cloud team admins, anchor the mobile account menu below its trigger, and protect the subscription modal from Livewire morphing.
This commit is contained in:
@@ -31,6 +31,18 @@ it('animates the dropdown panel when the user menu opens', function () {
|
||||
expect($stylesheet)->toContain('@import "tw-animate-css";');
|
||||
});
|
||||
|
||||
it('positions the account menu below the mobile trigger', function () {
|
||||
$menu = file_get_contents(resource_path('views/components/top-user-menu.blade.php'));
|
||||
$stylesheet = file_get_contents(resource_path('css/app.css'));
|
||||
|
||||
expect($menu)->toContain('top-user-menu-panel');
|
||||
expect($stylesheet)
|
||||
->toContain('.listbox-panel.top-user-menu-panel')
|
||||
->toContain('top: calc(100% + 0.25rem) !important;')
|
||||
->toContain('transform: none !important;')
|
||||
->toContain('max-height: calc(100dvh - 4.5rem) !important;');
|
||||
});
|
||||
|
||||
it('changes appearance from a submenu instead of navigating to a separate page', function () {
|
||||
$menu = file_get_contents(resource_path('views/components/top-user-menu.blade.php'));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user