mirror of
https://github.com/tiennm99/coolify.git
synced 2026-08-20 06:23:23 +00:00
fix(deployment): constrain desktop logs layout and bump version
Set the fallback Coolify version to 4.3.4 and keep the deployment logs panel at a fixed desktop height.
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
|
||||
return [
|
||||
'coolify' => [
|
||||
'version' => env('COOLIFY_VERSION') ?: '4.3.3',
|
||||
'version' => env('COOLIFY_VERSION') ?: '4.3.4',
|
||||
'helper_version' => '1.0.15',
|
||||
'realtime_version' => '1.0.17',
|
||||
'railpack_version' => '0.23.0',
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
<div
|
||||
class="flex min-h-[calc(100dvh-7.5rem)] flex-col xl:h-[calc(100dvh-7.5rem)] xl:min-h-0 xl:overflow-hidden">
|
||||
<div class="flex min-h-[calc(100dvh-7.5rem)] flex-col">
|
||||
<x-slot:title>
|
||||
{{ data_get_str($application, 'name')->limit(10) }} > Deployment | Coolify
|
||||
</x-slot>
|
||||
@@ -274,7 +273,7 @@
|
||||
this.deploymentFinishedCleanup = null;
|
||||
}
|
||||
}
|
||||
}" class="flex h-[calc(100dvh-8rem)] min-h-[32rem] w-full flex-col overflow-hidden xl:h-auto xl:min-h-0 xl:flex-1">
|
||||
}" class="flex h-[calc(100dvh-8rem)] min-h-[32rem] w-full flex-col overflow-hidden xl:h-[32rem] xl:min-h-0 xl:flex-none">
|
||||
<div id="screen" :class="fullscreen ? 'fullscreen flex flex-col' : 'mt-2 flex flex-1 min-h-0 flex-col overflow-hidden lg:mt-0'">
|
||||
<div @if ($isKeepAliveOn) wire:poll.2000ms="polling" @endif
|
||||
class="logs-viewer flex min-h-0 w-full flex-col overflow-hidden bg-white text-neutral-800 dark:bg-log dark:text-neutral-100"
|
||||
|
||||
@@ -75,10 +75,18 @@ it('renders deployment logs in a full-height layout', function () {
|
||||
$response->assertSee('logs-viewer-actions', false);
|
||||
$response->assertSee('logs-viewer-viewport', false);
|
||||
$response->assertSee('logs-viewer-line', false);
|
||||
$response->assertSee('h-[calc(100dvh-7.5rem)]', false);
|
||||
$response->assertSee('min-h-[calc(100dvh-7.5rem)] flex-col', false);
|
||||
$response->assertSee('flex flex-1 min-h-0 flex-col overflow-hidden', false);
|
||||
$response->assertSee('h-[calc(100dvh-8rem)]', false);
|
||||
$response->assertSee('xl:h-[32rem]', false);
|
||||
$response->assertSee('xl:flex-none', false);
|
||||
|
||||
expect($response->getContent())->not->toContain('max-h-[30rem]');
|
||||
expect($response->getContent())
|
||||
->not->toContain('max-h-[30rem]')
|
||||
->not->toContain('xl:h-[calc(100dvh-7.5rem)]')
|
||||
->not->toContain('xl:overflow-hidden')
|
||||
->not->toContain('h-[calc(100dvh-20rem)]')
|
||||
->not->toContain('deployment-logs-panel');
|
||||
});
|
||||
|
||||
it('uses a mobile-friendly stacked logs toolbar markup', function () {
|
||||
@@ -97,6 +105,11 @@ it('uses a mobile-friendly stacked logs toolbar markup', function () {
|
||||
->toContain('logs-viewer-timestamp')
|
||||
->toContain('logs-viewer-line-text')
|
||||
->toContain('livewire:project.application.deployment-navbar')
|
||||
->not->toContain('xl:h-[calc(100dvh-7.5rem)]')
|
||||
->not->toContain('xl:overflow-hidden')
|
||||
->toContain('xl:h-[32rem]')
|
||||
->toContain('xl:flex-none')
|
||||
->not->toContain('h-[calc(100dvh-20rem)]')
|
||||
->and($sharedLogsView)
|
||||
->toContain('logs-viewer-toolbar')
|
||||
->toContain('logs-viewer-toolbar-controls')
|
||||
|
||||
@@ -19,7 +19,7 @@ it('publishes v4 branch builds under the commit sha with a traceable internal ve
|
||||
->toContain('ARG COOLIFY_VERSION')
|
||||
->toContain('ENV COOLIFY_VERSION=${COOLIFY_VERSION}')
|
||||
->and($constants)
|
||||
->toContain("'version' => env('COOLIFY_VERSION') ?: '4.3.2'");
|
||||
->toContain("'version' => env('COOLIFY_VERSION') ?: '4.3.4'");
|
||||
});
|
||||
|
||||
it('orders a maintenance development build before its stable release', function () {
|
||||
|
||||
Reference in New Issue
Block a user