fix some switching stuff

This commit is contained in:
shamoon
2025-11-20 00:12:21 -08:00
parent b31c81f1e0
commit 531a381c98

View File

@@ -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 })
}
}