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: app logs view

Andras Bacsai94ecbc5921fb
diff --git a/apps/ui/src/routes/applications/[id]/logs/index.svelte b/apps/ui/src/routes/applications/[id]/logs/index.svelte
index 7909613995..84fabd7b98 100644
--- a/apps/ui/src/routes/applications/[id]/logs/index.svelte
+++ b/apps/ui/src/routes/applications/[id]/logs/index.svelte
@@ -133,42 +133,42 @@
<div class="text-xl font-bold tracking-tighter">Container not found / exited.</div>
{/if}
{:else}
- <div class="relative w-full" />
- <div class="flex justify-start sticky space-x-2 pb-2">
- {#if loadLogsInterval}
- <button id="streaming" class="btn btn-sm bg-transparent border-none loading"
- >Streaming logs</button
- >
- {/if}
- <div class="flex-1" />
- <button on:click={followBuild} class="btn btn-sm " class:bg-coollabs={followingLogs}>
- <svg
- xmlns="http://www.w3.org/2000/svg"
- class="w-6 h-6 mr-2"
- viewBox="0 0 24 24"
- stroke-width="1.5"
- stroke="currentColor"
- fill="none"
- stroke-linecap="round"
- stroke-linejoin="round"
- >
- <path stroke="none" d="M0 0h24v24H0z" fill="none" />
- <circle cx="12" cy="12" r="9" />
- <line x1="8" y1="12" x2="12" y2="16" />
- <line x1="12" y1="8" x2="12" y2="16" />
- <line x1="16" y1="12" x2="12" y2="16" />
- </svg>
- {followingLogs ? 'Following Logs...' : 'Follow Logs'}
- </button>
- </div>
- <div
- bind:this={logsEl}
- on:scroll={detect}
- class="font-mono w-full bg-coolgray-100 border border-coolgray-200 p-5 overflow-x-auto overflox-y-auto max-h-[80vh] rounded mb-20 flex flex-col scrollbar-thumb-coollabs scrollbar-track-coolgray-200 scrollbar-w-1"
- >
- {#each logs as log}
- <p>{log + '\n'}</p>
- {/each}
+ <div class="relative w-full">
+ <div class="flex justify-start sticky space-x-2 pb-2">
+ <button on:click={followBuild} class="btn btn-sm " class:bg-coollabs={followingLogs}>
+ <svg
+ xmlns="http://www.w3.org/2000/svg"
+ class="w-6 h-6 mr-2"
+ viewBox="0 0 24 24"
+ stroke-width="1.5"
+ stroke="currentColor"
+ fill="none"
+ stroke-linecap="round"
+ stroke-linejoin="round"
+ >
+ <path stroke="none" d="M0 0h24v24H0z" fill="none" />
+ <circle cx="12" cy="12" r="9" />
+ <line x1="8" y1="12" x2="12" y2="16" />
+ <line x1="12" y1="8" x2="12" y2="16" />
+ <line x1="16" y1="12" x2="12" y2="16" />
+ </svg>
+ {followingLogs ? 'Following Logs...' : 'Follow Logs'}
+ </button>
+ {#if loadLogsInterval}
+ <button id="streaming" class="btn btn-sm bg-transparent border-none loading"
+ >Streaming logs</button
+ >
+ {/if}
+ </div>
+ <div
+ bind:this={logsEl}
+ on:scroll={detect}
+ class="font-mono w-full bg-coolgray-100 border border-coolgray-200 p-5 overflow-x-auto overflox-y-auto max-h-[80vh] rounded mb-20 flex flex-col scrollbar-thumb-coollabs scrollbar-track-coolgray-200 scrollbar-w-1"
+ >
+ {#each logs as log}
+ <p>{log + '\n'}</p>
+ {/each}
+ </div>
</div>
{/if}
</div>