diff --git a/editor/index.html b/editor/index.html index 12846b8..9fbad33 100644 --- a/editor/index.html +++ b/editor/index.html @@ -4,14 +4,7 @@ 剧情编辑器 — 交互式电影游戏 - +
diff --git a/editor/main.ts b/editor/main.ts index 58590d5..4aaa1b5 100644 --- a/editor/main.ts +++ b/editor/main.ts @@ -2,13 +2,6 @@ import { createApp } from 'vue' import { createPinia } from 'pinia' import EditorApp from './App.vue' -function applyScale() { - const s = Math.min(window.innerWidth / 1920, window.innerHeight / 1080) - document.documentElement.style.setProperty('--scale', String(s)) -} -applyScale() -window.addEventListener('resize', applyScale) - const app = createApp(EditorApp) app.use(createPinia()) app.mount('#editor-app') diff --git a/index.html b/index.html index bd7621a..c71929e 100644 --- a/index.html +++ b/index.html @@ -4,14 +4,6 @@ 交互式电影游戏 -
diff --git a/src/App.vue b/src/App.vue index 10283dc..49e7239 100644 --- a/src/App.vue +++ b/src/App.vue @@ -405,6 +405,10 @@ html, body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; } +#app { + width: 100%; + height: 100%; +}