From d734c785b9612dfd615d00cbaa789c9d59be1d7d Mon Sep 17 00:00:00 2001 From: Diego Imbert Date: Mon, 27 Oct 2025 14:56:49 +0100 Subject: [PATCH] (Stash) Log Viewer UI Nits --- frontend/src/lib/components/LogViewer.svelte | 149 ++++++++++--------- 1 file changed, 76 insertions(+), 73 deletions(-) diff --git a/frontend/src/lib/components/LogViewer.svelte b/frontend/src/lib/components/LogViewer.svelte index 8f8c7546c8611..038b53fb17bcd 100644 --- a/frontend/src/lib/components/LogViewer.svelte +++ b/frontend/src/lib/components/LogViewer.svelte @@ -221,86 +221,89 @@
-
-
-
-
- {#if jobId && download} -
- - -
- {/if} - - {#if !noAutoScroll} - - {/if} -
+
+ {#if isLoading} +
+ + {#if tag} +
+
{tagLabel ?? 'tag'}: {tag}
+ +
+ {/if} + {#if jobId} + + {/if}
- {#if isLoading} -
- - {#if tag} -
-
{tagLabel ?? 'tag'}: {tag}
- -
- {/if} - {#if jobId} - - {/if} + {:else if duration} + took {duration}ms + {/if} + {#if mem} + mem peak: {(mem / 1024).toPrecision(4)}MB + {/if} +
+
+ {#if jobId && download} + - {:else if duration} - took {duration}ms {/if} - {#if mem} - mem peak: {(mem / 1024).toPrecision(4)}MB + {#if !noAutoScroll} + {/if} -
{#if content}{@const len =
-						(content?.length ?? 0) +
-						(loadedFromObjectStore?.length ?? 0)}{#if downloadStartUrl}
{:else if len > LOG_LIMIT}(truncated to the last {LOG_LIMIT} characters)

{/if}{@html html}{:else if !isLoading}{customEmptyMessage}{/if}
+
+
{#if content}{@const len =
+					(content?.length ?? 0) +
+					(loadedFromObjectStore?.length ?? 0)}{#if downloadStartUrl}
{:else if len > LOG_LIMIT}(truncated to the last {LOG_LIMIT} characters)

{/if}{@html html}{:else if !isLoading}{customEmptyMessage}{/if}
+