diff --git a/package.json b/package.json index e140a78..04121f5 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "@json.ms/www", "private": true, "type": "module", - "version": "1.3.5", + "version": "1.3.6", "scripts": { "dev": "vite --host", "build": "run-p type-check \"build-only {@}\" --", diff --git a/src/composables/layout.ts b/src/composables/layout.ts index c9a5bf4..03e38a2 100644 --- a/src/composables/layout.ts +++ b/src/composables/layout.ts @@ -101,19 +101,20 @@ export function useLayout() { let width = windowWidth.value - total; if (width < _mobileFrameWidth) { width = _mobileFrameWidth; - if (!drawer.temporary) { - drawer.temporary = true; - drawer.memory = globalStore.admin.drawer; - return getDataWidth(); - } else if (!editor.temporary) { - editor.temporary = true; - editor.memory = globalStore.admin.structure; - return getDataWidth(); - } else if (preview.active) { - preview.active = false; - preview.memory = globalStore.admin.previewMode; - return getDataWidth(); - } + // if (!drawer.temporary) { + // drawer.temporary = true; + // drawer.memory = globalStore.admin.drawer; + // return getDataWidth(); + // } else if (!editor.temporary) { + // editor.temporary = true; + // editor.memory = globalStore.admin.structure; + // return getDataWidth(); + // } else if (preview.active) { + // if (preview.active) { + // preview.active = false; + // preview.memory = globalStore.admin.previewMode; + // return getDataWidth(); + // } } return width; }