Revert "feat: add transform:scale() UI scaling for 1920x1080 canvas"

This reverts commit 6a6414510e.
This commit is contained in:
2026-06-12 16:30:58 +08:00
parent 6a6414510e
commit 18bf98aa16
5 changed files with 5 additions and 30 deletions

View File

@@ -405,6 +405,10 @@ html, body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
#app {
width: 100%;
height: 100%;
}
</style>
<style scoped>

View File

@@ -2,13 +2,6 @@ import { createApp } from 'vue'
import { createPinia } from 'pinia'
import App 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(App)
app.use(createPinia())
app.mount('#app')