Skip to content

An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.

fix: position Update button next to comment field for locked variables

Andras Bacsaidfb180601ae7
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 918df8e504..c2865ccb8a 100644
--- a/resources/views/livewire/project/shared/environment-variable/show.blade.php
+++ b/resources/views/livewire/project/shared/environment-variable/show.blade.php
@@ -22,9 +22,12 @@
@endcan
</div>
@can('update', $this->env)
- <div class="w-full">
- <x-forms.input id="comment" label="Comment (Optional)"
- helper="Add a note to document what this environment variable is used for." maxlength="256" />
+ <div class="flex flex-col w-full gap-2 lg:flex-row lg:items-end">
+ <div class="flex-1">
+ <x-forms.input id="comment" label="Comment (Optional)"
+ helper="Add a note to document what this environment variable is used for." maxlength="256" />
+ </div>
+ <x-forms.button type="submit">Update</x-forms.button>
</div>
<div class="flex flex-col w-full gap-3">
<div class="flex flex-wrap w-full items-center gap-4">
@@ -71,9 +74,6 @@
@endif
</div>
</div>
- <div class="flex w-full justify-end gap-2">
- <x-forms.button type="submit">Update</x-forms.button>
- </div>
@else
<div class="flex flex-col w-full gap-3">
<div class="flex flex-wrap w-full items-center gap-4">