mirror of
https://github.com/tiennm99/coolify.git
synced 2026-10-13 18:15:24 +00:00
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.
This commit is contained in:
1 parent
1f550e8fcf
commit
37ed725dc1
5 files changed
+34
-11
No files matched your search
@@ -0,0 +1,10 @@
|
||||
<?php
|
||||
|
||||
it('only deploys from keyboard events on the resource card itself', function () {
|
||||
$view = file_get_contents(resource_path('views/livewire/project/new/select.blade.php'));
|
||||
|
||||
expect(substr_count($view, '@keydown.enter.self.prevent='))->toBe(4)
|
||||
->and(substr_count($view, '@keydown.space.self.prevent='))->toBe(4)
|
||||
->and($view)->not->toContain('@keydown.enter.prevent=')
|
||||
->and($view)->not->toContain('@keydown.space.prevent=');
|
||||
});
|
||||
Reference in new issue
Block a user