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 fd9acdaf8..76cfcead6 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 @@ class="input italic !text-neutral-500 dark:!text-neutral-500" /> @endcan @can('update', $this->env) -
-
+
+
+
@if (!$is_redis_credential) @if ($type === 'service') @if (!$isMagicVariable) @@ -266,10 +267,11 @@ class="input italic !text-neutral-500 dark:!text-neutral-500" /> @endif @endif @endif +
+
- @if (!$isMagicVariable) -
+
@if ($isDisabled) Update Lock @@ -291,7 +293,7 @@ class="input italic !text-neutral-500 dark:!text-neutral-500" /> @endif
@elseif ($type === 'service') -
+
Lock
@endif diff --git a/tests/Feature/EnvironmentVariableMultilineToggleViewTest.php b/tests/Feature/EnvironmentVariableMultilineToggleViewTest.php index 8af9c69d5..9d0b1c5b5 100644 --- a/tests/Feature/EnvironmentVariableMultilineToggleViewTest.php +++ b/tests/Feature/EnvironmentVariableMultilineToggleViewTest.php @@ -27,6 +27,14 @@ 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'));