Formatting
This commit is contained in:
parent
508377c005
commit
9973542ba4
2 changed files with 7 additions and 6 deletions
|
|
@ -78,8 +78,9 @@ export class Syncer {
|
|||
public async syncRemotelyUpdatedFile(
|
||||
remoteVersion: components["schemas"]["DocumentVersionWithoutContent"]
|
||||
): Promise<void> {
|
||||
await this.syncQueue.add(async () =>
|
||||
this.internalSyncRemotelyUpdatedFile(remoteVersion)
|
||||
await this.syncQueue.add(
|
||||
async () =>
|
||||
this.internalSyncRemotelyUpdatedFile(remoteVersion)
|
||||
);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -91,9 +91,9 @@ export class LogsView extends ItemView {
|
|||
|
||||
logsContainer = container.createDiv(
|
||||
{ cls: "logs-container" },
|
||||
(logsContainer) => {
|
||||
logs.slice(-100).forEach((message) =>
|
||||
logsContainer.createDiv(
|
||||
(element) => {
|
||||
logs.forEach((message) =>
|
||||
element.createDiv(
|
||||
{
|
||||
cls: ["log-message", message.level],
|
||||
},
|
||||
|
|
@ -113,7 +113,7 @@ export class LogsView extends ItemView {
|
|||
}
|
||||
);
|
||||
|
||||
if (scrollPosition) {
|
||||
if (scrollPosition !== undefined) {
|
||||
logsContainer.scrollTop = scrollPosition;
|
||||
} else {
|
||||
logsContainer.scrollTop = logsContainer.scrollHeight;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue