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.
PHP coolifydatabasesdeploymentdockerdocker-composeinertiajslaravelmariadbmysqlnextjsnodejsphppostgresredisself-hostedself-hostingserverstatic-sitesveltesvelte5
fix(deployment): constrain desktop logs layout and bump version
Andras Bacsai2113c0687d4d
diff --git a/config/constants.php b/config/constants.phpindex 733a6c183d..7b228092b0 100644--- a/config/constants.php+++ b/config/constants.php@@ -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',diff --git a/resources/views/livewire/project/application/deployment/show.blade.php b/resources/views/livewire/project/application/deployment/show.blade.phpindex acab951859..0c732d1fb8 100644--- a/resources/views/livewire/project/application/deployment/show.blade.php+++ b/resources/views/livewire/project/application/deployment/show.blade.php@@ -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" @endifclass="logs-viewer flex min-h-0 w-full flex-col overflow-hidden bg-white text-neutral-800 dark:bg-log dark:text-neutral-100"diff --git a/tests/Feature/DeploymentLogsLayoutTest.php b/tests/Feature/DeploymentLogsLayoutTest.phpindex 0b9a4452c2..aa827f173b 100644--- a/tests/Feature/DeploymentLogsLayoutTest.php+++ b/tests/Feature/DeploymentLogsLayoutTest.php@@ -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')diff --git a/tests/Unit/ProductionImageWorkflowTest.php b/tests/Unit/ProductionImageWorkflowTest.phpindex 4880865264..765a081427 100644--- a/tests/Unit/ProductionImageWorkflowTest.php+++ b/tests/Unit/ProductionImageWorkflowTest.php@@ -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 () {