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 32f72c0c4..1accfeb87 100644 --- a/src-ui/src/app/components/admin/logs/logs.component.ts +++ b/src-ui/src/app/components/admin/logs/logs.component.ts @@ -110,6 +110,7 @@ export class LogsComponent }) if (hasChanges) { this.logs = parsed + this.logContainer?.checkViewportSize() this.scrollToBottom() } }, @@ -145,8 +146,6 @@ export class LogsComponent scrollToBottom(): void { this.changedetectorRef.detectChanges() - if (this.logContainer) { - this.logContainer.scrollTo({ bottom: 0 }) - } + this.logContainer?.scrollTo({ bottom: 0 }) } }