@@ -78,7 +78,6 @@
onMount(async () => {
window.addEventListener('resize', adjustHeight);
- adjustHeight();
let notes = await getNoteList(localStorage.token).catch(() => {
return [];
@@ -175,6 +174,9 @@
fuse = new Fuse(items, {
keys: ['name', 'description']
});
+
+ await tick();
+ adjustHeight();
onDestroy(() => {
@@ -76,13 +76,14 @@
await tick();
const chatInputElement = document.getElementById('chat-input');
chatInputElement?.focus();
@@ -59,8 +59,10 @@
onSelect({ type: 'prompt', data: command });
};
- onMount(() => {
+ onMount(async () => {
adjustHeight();