fix(ui): change order and fix ui on small screens

This commit is contained in:
peaklabs-dev
2025-09-18 19:14:34 +02:00
parent 429c43f9e5
commit c0ddf73b75

View File

@@ -55,15 +55,16 @@
</div> </div>
@endcan @endcan
@can('update', $this->env) @can('update', $this->env)
<div class="flex flex-col w-full gap-2 lg:flex-row"> <div class="flex flex-col w-full gap-3">
<div class="flex w-full items-center gap-4 overflow-x-auto whitespace-nowrap">
@if (!$is_redis_credential) @if (!$is_redis_credential)
@if ($type === 'service') @if ($type === 'service')
<x-forms.checkbox instantSave id="is_runtime"
helper="Make this variable available in the running container at runtime."
label="Available at Runtime" />
<x-forms.checkbox instantSave id="is_buildtime" <x-forms.checkbox instantSave id="is_buildtime"
helper="Make this variable available during Docker build process. Useful for build secrets and dependencies." helper="Make this variable available during Docker build process. Useful for build secrets and dependencies."
label="Available at Buildtime" /> label="Available at Buildtime" />
<x-forms.checkbox instantSave id="is_runtime"
helper="Make this variable available in the running container at runtime."
label="Available at Runtime" />
<x-forms.checkbox instantSave id="is_multiline" label="Is Multiline?" /> <x-forms.checkbox instantSave id="is_multiline" label="Is Multiline?" />
<x-forms.checkbox instantSave id="is_literal" <x-forms.checkbox instantSave id="is_literal"
helper="This means that when you use $VARIABLES in a value, it should be interpreted as the actual characters '$VARIABLES' and not as the value of a variable named VARIABLE.<br><br>Useful if you have $ sign in your value and there are some characters after it, but you would not like to interpolate it from another value. In this case, you should set this to true." helper="This means that when you use $VARIABLES in a value, it should be interpreted as the actual characters '$VARIABLES' and not as the value of a variable named VARIABLE.<br><br>Useful if you have $ sign in your value and there are some characters after it, but you would not like to interpolate it from another value. In this case, you should set this to true."
@@ -78,9 +79,6 @@
<x-forms.checkbox instantSave id="is_multiline" label="Is Multiline?" /> <x-forms.checkbox instantSave id="is_multiline" label="Is Multiline?" />
@else @else
@if (!$env->is_coolify) @if (!$env->is_coolify)
<x-forms.checkbox instantSave id="is_runtime"
helper="Make this variable available in the running container at runtime."
label="Available at Runtime" />
@if (!$env->is_nixpacks) @if (!$env->is_nixpacks)
<x-forms.checkbox instantSave id="is_buildtime" <x-forms.checkbox instantSave id="is_buildtime"
helper="Make this variable available during Docker build process. Useful for build secrets and dependencies." helper="Make this variable available during Docker build process. Useful for build secrets and dependencies."
@@ -92,19 +90,19 @@
label="Is Literal?" /> label="Is Literal?" />
@endif @endif
@endif @endif
<x-forms.checkbox instantSave id="is_runtime"
helper="Make this variable available in the running container at runtime."
label="Available at Runtime" />
@endif @endif
@endif @endif
@endif @endif
@endif @endif
@endif @endif
<div class="flex-1"></div> </div>
<div class="flex w-full justify-end gap-2">
@if ($isDisabled) @if ($isDisabled)
<x-forms.button disabled type="submit"> <x-forms.button disabled type="submit">Update</x-forms.button>
Update <x-forms.button wire:click='lock'>Lock</x-forms.button>
</x-forms.button>
<x-forms.button wire:click='lock'>
Lock
</x-forms.button>
<x-modal-confirmation title="Confirm Environment Variable Deletion?" isErrorButton <x-modal-confirmation title="Confirm Environment Variable Deletion?" isErrorButton
buttonTitle="Delete" submitAction="delete" :actions="['The selected environment variable will be permanently deleted.']" buttonTitle="Delete" submitAction="delete" :actions="['The selected environment variable will be permanently deleted.']"
confirmationText="{{ $key }}" buttonFullWidth="true" confirmationText="{{ $key }}" buttonFullWidth="true"
@@ -112,12 +110,8 @@
shortConfirmationLabel="Environment Variable Name" :confirmWithPassword="false" shortConfirmationLabel="Environment Variable Name" :confirmWithPassword="false"
step2ButtonText="Permanently Delete" /> step2ButtonText="Permanently Delete" />
@else @else
<x-forms.button type="submit"> <x-forms.button type="submit">Update</x-forms.button>
Update <x-forms.button wire:click='lock'>Lock</x-forms.button>
</x-forms.button>
<x-forms.button wire:click='lock'>
Lock
</x-forms.button>
<x-modal-confirmation title="Confirm Environment Variable Deletion?" isErrorButton <x-modal-confirmation title="Confirm Environment Variable Deletion?" isErrorButton
buttonTitle="Delete" submitAction="delete" :actions="['The selected environment variable will be permanently deleted.']" buttonTitle="Delete" submitAction="delete" :actions="['The selected environment variable will be permanently deleted.']"
confirmationText="{{ $key }}" buttonFullWidth="true" confirmationText="{{ $key }}" buttonFullWidth="true"
@@ -126,16 +120,19 @@
step2ButtonText="Permanently Delete" /> step2ButtonText="Permanently Delete" />
@endif @endif
</div> </div>
</div>
@else @else
<div class="flex flex-col w-full gap-2 flex-wrap lg:flex-row"> <div class="flex flex-col w-full gap-3">
<div class="flex w-full items-center gap-4 overflow-x-auto whitespace-nowrap">
@if (!$is_redis_credential) @if (!$is_redis_credential)
@if ($type === 'service') @if ($type === 'service')
<x-forms.checkbox disabled id="is_runtime"
helper="Make this variable available in the running container at runtime."
label="Available at Runtime" />
<x-forms.checkbox disabled id="is_buildtime" <x-forms.checkbox disabled id="is_buildtime"
helper="Make this variable available during Docker build process. Useful for build secrets and dependencies." helper="Make this variable available during Docker build process. Useful for build secrets and dependencies."
label="Available at Buildtime" /> label="Available at Buildtime" />
<x-forms.checkbox disabled id="is_runtime"
helper="Make this variable available in the running container at runtime."
label="Available at Runtime" />
<x-forms.checkbox disabled id="is_multiline" label="Is Multiline?" /> <x-forms.checkbox disabled id="is_multiline" label="Is Multiline?" />
<x-forms.checkbox disabled id="is_literal" <x-forms.checkbox disabled id="is_literal"
helper="This means that when you use $VARIABLES in a value, it should be interpreted as the actual characters '$VARIABLES' and not as the value of a variable named VARIABLE.<br><br>Useful if you have $ sign in your value and there are some characters after it, but you would not like to interpolate it from another value. In this case, you should set this to true." helper="This means that when you use $VARIABLES in a value, it should be interpreted as the actual characters '$VARIABLES' and not as the value of a variable named VARIABLE.<br><br>Useful if you have $ sign in your value and there are some characters after it, but you would not like to interpolate it from another value. In this case, you should set this to true."
@@ -149,12 +146,12 @@
@if ($isSharedVariable) @if ($isSharedVariable)
<x-forms.checkbox disabled id="is_multiline" label="Is Multiline?" /> <x-forms.checkbox disabled id="is_multiline" label="Is Multiline?" />
@else @else
<x-forms.checkbox disabled id="is_runtime"
helper="Make this variable available in the running container at runtime."
label="Available at Runtime" />
<x-forms.checkbox disabled id="is_buildtime" <x-forms.checkbox disabled id="is_buildtime"
helper="Make this variable available during Docker build process. Useful for build secrets and dependencies." helper="Make this variable available during Docker build process. Useful for build secrets and dependencies."
label="Available at Buildtime" /> label="Available at Buildtime" />
<x-forms.checkbox disabled id="is_runtime"
helper="Make this variable available in the running container at runtime."
label="Available at Runtime" />
<x-forms.checkbox disabled id="is_multiline" label="Is Multiline?" /> <x-forms.checkbox disabled id="is_multiline" label="Is Multiline?" />
@if ($is_multiline === false) @if ($is_multiline === false)
<x-forms.checkbox disabled id="is_literal" <x-forms.checkbox disabled id="is_literal"
@@ -165,7 +162,7 @@
@endif @endif
@endif @endif
@endif @endif
<div class="flex-1"></div> </div>
</div> </div>
@endcan @endcan
@endif @endif