Revert "feat: add transform:scale() UI scaling for 1920x1080 canvas"
This reverts commit 6a6414510e.
This commit is contained in:
@@ -405,6 +405,10 @@ html, body {
|
||||
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
|
||||
}
|
||||
|
||||
#app {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
</style>
|
||||
|
||||
<style scoped>
|
||||
|
||||
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user