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:
Andras Bacsai
2026-08-16 08:02:23 +02:00
parent 0a35909ddf
commit bb45668a80
6 changed files with 64 additions and 2 deletions
+12
View File
@@ -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'));