diff --git a/src-ui/src/app/components/admin/logs/logs.component.html b/src-ui/src/app/components/admin/logs/logs.component.html index 649fd62ac..2df9afc7a 100644 --- a/src-ui/src/app/components/admin/logs/logs.component.html +++ b/src-ui/src/app/components/admin/logs/logs.component.html @@ -41,21 +41,15 @@ } - + @if (loading && !logFiles.length) {
Loading...
+ } @else { +
+

{{log.message}}

+
} -

- {{log.message}} -

diff --git a/src-ui/src/app/components/admin/logs/logs.component.ts b/src-ui/src/app/components/admin/logs/logs.component.ts index 1accfeb87..47f837490 100644 --- a/src-ui/src/app/components/admin/logs/logs.component.ts +++ b/src-ui/src/app/components/admin/logs/logs.component.ts @@ -110,7 +110,6 @@ export class LogsComponent }) if (hasChanges) { this.logs = parsed - this.logContainer?.checkViewportSize() this.scrollToBottom() } }, @@ -146,6 +145,9 @@ export class LogsComponent scrollToBottom(): void { this.changedetectorRef.detectChanges() - this.logContainer?.scrollTo({ bottom: 0 }) + setTimeout(() => { + this.logContainer?.checkViewportSize() + this.logContainer?.scrollTo({ bottom: 0 }) + }, 50) } }