Skip to content

Commit

Permalink
chore: fix all issues
Browse files Browse the repository at this point in the history
  • Loading branch information
koen1711 committed Sep 22, 2024
1 parent d7f392c commit 755f23e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/lib/components/core/popups/popups/SerialMonitor.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ function insertDate() {
{/if}
{#if mode === Mode.TEXT}
<div class="content" bind:this={element}>
{#each $log as item}
{#each $log as item (item.id)}
<div class="item">
<div class="date">{formatDate(item.date)}</div>
<div class="text">{item.content}</div>
Expand Down
3 changes: 2 additions & 1 deletion src/lib/state/popup.svelte.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,14 @@ function createPopups() {
let onclose: (value: any) => void;
const promise = new Promise<any>((resolve) => (onclose = resolve));
const state: PopupState = {
id: `${count++}`,
id: `${count}`,
position: { x: 0, y: 0 },
popup,
onclose,
anchor: Anchor.Center,
...initialState,
};
count++;
if (count > 1000) count = 0;
update((popups) => {
if (
Expand Down
1 change: 1 addition & 0 deletions src/lib/state/workspace.svelte.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ function createLogState() {
})),
].slice(-100),
);
count++;
if (count > 100) count = 0;
}
},
Expand Down

0 comments on commit 755f23e

Please sign in to comment.