try to fix some overflow stuff

This commit is contained in:
shamoon
2025-11-20 00:24:40 -08:00
parent 531a381c98
commit 76ba7da62a
2 changed files with 9 additions and 13 deletions

View File

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