diff --git a/src/App.vue b/src/App.vue
index 876afbb..3ba256c 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -1,45 +1,38 @@
-
-
+
+
-
+
-
+
+
+
+
+
diff --git a/src/components/Resizable.vue b/src/components/Resizable.vue
deleted file mode 100644
index 50a4dd7..0000000
--- a/src/components/Resizable.vue
+++ /dev/null
@@ -1,66 +0,0 @@
-
-
-
-
-
-
-
diff --git a/src/stores/editor.ts b/src/stores/editor.ts
index 1f4b82b..7201002 100644
--- a/src/stores/editor.ts
+++ b/src/stores/editor.ts
@@ -8,7 +8,7 @@ const debouncedSetItem = debounce({ delay: 200 }, localStorage.setItem.bind(loca
export const useEditorStore = defineStore('editor', () => {
const size = ref(parseInt(localStorage.getItem('size') || '') || 20);
- const width = ref(parseInt(localStorage.getItem('width') || '') || 200);
+ const split = ref(parseFloat(localStorage.getItem('split') || '') || 0.75);
const content = ref(localStorage.getItem('content') || '');
const scroll = ref(0);
const selection = ref();
@@ -17,8 +17,8 @@ export const useEditorStore = defineStore('editor', () => {
debouncedSetItem('size', String(value));
});
- watch(width, (value) => {
- debouncedSetItem('width', String(value));
+ watch(split, (value) => {
+ debouncedSetItem('split', String(value));
});
watch(content, (value) => {
@@ -27,7 +27,7 @@ export const useEditorStore = defineStore('editor', () => {
return {
size,
- width,
+ split,
content,
scroll,
selection,