From 18bf98aa1605e83c2bb70409a1d93edf9056df38 Mon Sep 17 00:00:00 2001 From: cocos02 Date: Fri, 12 Jun 2026 16:30:58 +0800 Subject: [PATCH] Revert "feat: add transform:scale() UI scaling for 1920x1080 canvas" This reverts commit 6a6414510e8ff172e52de19dd82fbd7991c19c65. --- editor/index.html | 9 +-------- editor/main.ts | 7 ------- index.html | 8 -------- src/App.vue | 4 ++++ src/main.ts | 7 ------- 5 files changed, 5 insertions(+), 30 deletions(-) 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%; +}