diff --git a/src/lib/Card/index.svelte b/src/lib/Card/index.svelte
index 326fdea6..8dc224cb 100644
--- a/src/lib/Card/index.svelte
+++ b/src/lib/Card/index.svelte
@@ -2,7 +2,7 @@
-
diff --git a/src/lib/Editor/index.svelte b/src/lib/Editor/index.svelte
index 962bc039..4b8d3211 100644
--- a/src/lib/Editor/index.svelte
+++ b/src/lib/Editor/index.svelte
@@ -55,17 +55,16 @@
Monaco = await import('monaco-editor');
initEditor(Monaco);
- // divEl = document.getElementById('editor') as HTMLDivElement;
editor = Monaco.editor.create(divEl, editorOptions);
editor.onDidChangeModelContent(async () => {
dispatch('update', {
text: editor.getValue()
});
});
- editor.layout({
- height: divEl.parentElement.offsetHeight,
- width: divEl.parentElement.offsetWidth
- });
+ // editor.layout({
+ // height: divEl.offsetHeight,
+ // width: divEl.offsetWidth
+ // });
const resizeObserver = new ResizeObserver((entries) => {
editor.layout({
height: entries[0].contentRect.height,
@@ -79,4 +78,14 @@
});
-
+
+
+
diff --git a/src/lib/History/index.svelte b/src/lib/History/index.svelte
index f22d99b5..a56afd2d 100644
--- a/src/lib/History/index.svelte
+++ b/src/lib/History/index.svelte
@@ -12,7 +12,7 @@
import { notify, prompt } from '$lib/Util/notify';
import { onMount } from 'svelte';
- const HISTORY_SAVE_INTERVAL: number = 60000;
+ const HISTORY_SAVE_INTERVAL: number = 1000;
const tabSelectHandler = (message: CustomEvent) => {
autoHistoryMode.set('timeline' === message.detail.id);
@@ -75,7 +75,7 @@
>
-
+
{#each $historyStore as { state, time, name }}
-
{new Date(time)}
@@ -86,3 +86,10 @@
{/each}
+
+
diff --git a/src/routes/edit.svelte b/src/routes/edit.svelte
index 3a61f1ba..18ad1870 100644
--- a/src/routes/edit.svelte
+++ b/src/routes/edit.svelte
@@ -123,10 +123,9 @@