From 37ed725dc1667309e7d04ec178c133f62e0f839b Mon Sep 17 00:00:00 2001 From: Andras Bacsai <5845193+andrasbacsai@users.noreply.github.com> Date: Wed, 12 Aug 2026 23:57:32 +0200 Subject: [PATCH] fix(ui): scope resource card keys and env count hide Limit enter/space deploy handlers to the card root with .self so nested focusable content no longer triggers deploy. Hide the environments table resource count on mobile via a stable class instead of nth-child. --- resources/css/app.css | 2 +- .../views/livewire/project/new/select.blade.php | 16 ++++++++-------- resources/views/livewire/project/show.blade.php | 4 ++-- tests/Feature/NewResourceCardInteractionTest.php | 10 ++++++++++ .../Feature/ProjectEnvironmentPageHeaderTest.php | 13 +++++++++++++ 5 files changed, 34 insertions(+), 11 deletions(-) create mode 100644 tests/Feature/NewResourceCardInteractionTest.php diff --git a/resources/css/app.css b/resources/css/app.css index eba9429ea..4bd2ceb46 100644 --- a/resources/css/app.css +++ b/resources/css/app.css @@ -3681,7 +3681,7 @@ html[data-theme="custom"] .logs-viewer-timestamp { column-gap: 0.75rem; } - .environments-table-grid > :nth-child(2) { + .environments-table-grid .environment-resource-count { display: none; } } diff --git a/resources/views/livewire/project/new/select.blade.php b/resources/views/livewire/project/new/select.blade.php index ee043d296..8464e41ca 100644 --- a/resources/views/livewire/project/new/select.blade.php +++ b/resources/views/livewire/project/new/select.blade.php @@ -115,8 +115,8 @@ class="application-settings-section-body grid grid-cols-1 justify-start gap-3 text-left md:grid-cols-2 xl:grid-cols-3">