From bb45668a804dfc1dd7abc4cf50484c824faa04ff Mon Sep 17 00:00:00 2001 From: Andras Bacsai <5845193+andrasbacsai@users.noreply.github.com> Date: Sun, 16 Aug 2026 08:02:23 +0200 Subject: [PATCH] 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. --- resources/css/app.css | 13 +++++++++ resources/views/components/navbar.blade.php | 10 +++++++ .../views/components/top-user-menu.blade.php | 2 +- .../livewire/subscription/actions.blade.php | 2 +- .../SubscriptionPricingPageTest.php | 27 +++++++++++++++++++ tests/Feature/TopUserMenuTest.php | 12 +++++++++ 6 files changed, 64 insertions(+), 2 deletions(-) diff --git a/resources/css/app.css b/resources/css/app.css index ccaf7181e..0d80bf0b4 100644 --- a/resources/css/app.css +++ b/resources/css/app.css @@ -1959,6 +1959,19 @@ html[data-theme="custom"] textarea:disabled { transform: translate(-50%, -50%) !important; z-index: 9999 !important; } + + /* The mobile top bar's backdrop filter makes it the containing block for + fixed descendants. Keep this menu anchored below its trigger instead + of centering it within the short top bar. */ + .listbox-panel.top-user-menu-panel { + position: absolute !important; + top: calc(100% + 0.25rem) !important; + right: 0 !important; + left: auto !important; + max-height: calc(100dvh - 4.5rem) !important; + overflow-y: auto !important; + transform: none !important; + } } .listbox-option { diff --git a/resources/views/components/navbar.blade.php b/resources/views/components/navbar.blade.php index 1452445ce..0be0fd0aa 100644 --- a/resources/views/components/navbar.blade.php +++ b/resources/views/components/navbar.blade.php @@ -167,6 +167,16 @@ + @if (isCloud() && auth()->user()->isAdmin()) +