From 59605fe7d30d8a5e647495a7b7d90f3a9c93ac6f Mon Sep 17 00:00:00 2001 From: Andras Bacsai <5845193+andrasbacsai@users.noreply.github.com> Date: Tue, 14 Jul 2026 13:58:15 +0200 Subject: [PATCH 1/2] fix(environment-variable): keep delete button compact --- .../project/shared/environment-variable/show.blade.php | 4 ++-- .../Feature/EnvironmentVariableMultilineToggleViewTest.php | 6 ++++++ 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/resources/views/livewire/project/shared/environment-variable/show.blade.php b/resources/views/livewire/project/shared/environment-variable/show.blade.php index c602ba4af6..fd9acdaf82 100644 --- a/resources/views/livewire/project/shared/environment-variable/show.blade.php +++ b/resources/views/livewire/project/shared/environment-variable/show.blade.php @@ -275,7 +275,7 @@ Lock @@ -284,7 +284,7 @@ Lock diff --git a/tests/Feature/EnvironmentVariableMultilineToggleViewTest.php b/tests/Feature/EnvironmentVariableMultilineToggleViewTest.php index de97e6095f..8af9c69d57 100644 --- a/tests/Feature/EnvironmentVariableMultilineToggleViewTest.php +++ b/tests/Feature/EnvironmentVariableMultilineToggleViewTest.php @@ -21,6 +21,12 @@ it('uses distinct keyed branches for the edit value field modes', function () { ->toContain('wire:key="env-show-value-input-{{ $env->id }}"'); }); +it('keeps the environment variable delete button compact', function () { + $view = file_get_contents(resource_path('views/livewire/project/shared/environment-variable/show.blade.php')); + + expect($view)->not->toContain('buttonFullWidth="true"'); +}); + it('uses sans font for the developer bulk environment variable editor', function () { $view = file_get_contents(resource_path('views/livewire/project/shared/environment-variable/all.blade.php')); From 198e9f8fff379cdfe9ef44d3f0589d501b2ef809 Mon Sep 17 00:00:00 2001 From: Andras Bacsai <5845193+andrasbacsai@users.noreply.github.com> Date: Tue, 14 Jul 2026 14:02:34 +0200 Subject: [PATCH 2/2] fix(environment-variable): align settings and actions responsively --- .../shared/environment-variable/show.blade.php | 12 +++++++----- .../EnvironmentVariableMultilineToggleViewTest.php | 8 ++++++++ 2 files changed, 15 insertions(+), 5 deletions(-) diff --git a/resources/views/livewire/project/shared/environment-variable/show.blade.php b/resources/views/livewire/project/shared/environment-variable/show.blade.php index fd9acdaf82..76cfcead65 100644 --- a/resources/views/livewire/project/shared/environment-variable/show.blade.php +++ b/resources/views/livewire/project/shared/environment-variable/show.blade.php @@ -217,8 +217,9 @@ @endcan @can('update', $this->env) -
-
+
+
+
@if (!$is_redis_credential) @if ($type === 'service') @if (!$isMagicVariable) @@ -266,10 +267,11 @@ @endif @endif @endif +
+
- @if (!$isMagicVariable) -
+
@if ($isDisabled) Update Lock @@ -291,7 +293,7 @@ @endif
@elseif ($type === 'service') -
+
Lock
@endif diff --git a/tests/Feature/EnvironmentVariableMultilineToggleViewTest.php b/tests/Feature/EnvironmentVariableMultilineToggleViewTest.php index 8af9c69d57..9d0b1c5b5a 100644 --- a/tests/Feature/EnvironmentVariableMultilineToggleViewTest.php +++ b/tests/Feature/EnvironmentVariableMultilineToggleViewTest.php @@ -27,6 +27,14 @@ it('keeps the environment variable delete button compact', function () { expect($view)->not->toContain('buttonFullWidth="true"'); }); +it('aligns environment variable settings and actions in a responsive row', function () { + $view = file_get_contents(resource_path('views/livewire/project/shared/environment-variable/show.blade.php')); + + expect($view) + ->toContain('class="flex w-full flex-col gap-3 lg:flex-row lg:items-start lg:justify-between"') + ->toContain('class="flex w-full justify-end gap-2 lg:w-auto lg:shrink-0"'); +}); + it('uses sans font for the developer bulk environment variable editor', function () { $view = file_get_contents(resource_path('views/livewire/project/shared/environment-variable/all.blade.php'));