mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-11-23 23:49:08 -06:00
fix some switching stuff
This commit is contained in:
@@ -110,6 +110,7 @@ export class LogsComponent
|
|||||||
})
|
})
|
||||||
if (hasChanges) {
|
if (hasChanges) {
|
||||||
this.logs = parsed
|
this.logs = parsed
|
||||||
|
this.logContainer?.checkViewportSize()
|
||||||
this.scrollToBottom()
|
this.scrollToBottom()
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -145,8 +146,6 @@ export class LogsComponent
|
|||||||
|
|
||||||
scrollToBottom(): void {
|
scrollToBottom(): void {
|
||||||
this.changedetectorRef.detectChanges()
|
this.changedetectorRef.detectChanges()
|
||||||
if (this.logContainer) {
|
this.logContainer?.scrollTo({ bottom: 0 })
|
||||||
this.logContainer.scrollTo({ bottom: 0 })
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user