-
+
Notpad
diff --git a/src/lib/components/EditorTabs.svelte b/src/lib/components/EditorTabs.svelte
index 8be83cea..b3ab92dd 100644
--- a/src/lib/components/EditorTabs.svelte
+++ b/src/lib/components/EditorTabs.svelte
@@ -3,12 +3,14 @@
import * as Tabs from '@/components/ui/tabs';
import * as ContextMenu from '@/components/ui/context-menu';
import EditorTitle from '@/components/EditorTitle.svelte';
- import { activeTabId, editors } from '@/store/store';
import { slide } from 'svelte/transition';
import EditMenuItems from '@/components/EditMenuItems.svelte';
+ import { Notpad } from '@/helpers/notpad';
- let innerWidth = $state(window.innerWidth);
+ const activeTabId = Notpad.stores.activeTabId;
+ const editors = Notpad.stores.editors;
+ let innerWidth = $state(window.innerWidth);
let isMD = $derived(innerWidth <= 768);
/**
* Compact mode is disabled on mobile devices (width <= 450px)
diff --git a/src/lib/components/EditorTitle.svelte b/src/lib/components/EditorTitle.svelte
index b18c3d20..15bd2780 100644
--- a/src/lib/components/EditorTitle.svelte
+++ b/src/lib/components/EditorTitle.svelte
@@ -2,7 +2,6 @@
import { Notpad } from '@/helpers/notpad';
import { tick } from 'svelte';
import { longpress } from '@/actions/longpress';
- import { activeTabId } from '@/store/store';
import * as Tooltip from '@/components/ui/tooltip';
import CloseIcon from '@/components/icons/Close.svelte';
import Button from '@/components/ui/button/button.svelte';
@@ -15,6 +14,8 @@
}
const maxlength = 54;
+ const activeTabId = Notpad.stores.activeTabId;
+
let { editor }: Props = $props();
let readonly = $state(true);
let input: HTMLInputElement = $state(null!);
diff --git a/src/lib/components/Loading.svelte b/src/lib/components/Loading.svelte
index 5910521d..f3b51478 100644
--- a/src/lib/components/Loading.svelte
+++ b/src/lib/components/Loading.svelte
@@ -1,8 +1,10 @@
-
+
diff --git a/src/lib/components/StatusBar.svelte b/src/lib/components/StatusBar.svelte
index 50209d3a..6e419089 100644
--- a/src/lib/components/StatusBar.svelte
+++ b/src/lib/components/StatusBar.svelte
@@ -1,9 +1,7 @@
-{#if $settings.caret.enable}
-
-{/if}
+