Skip to content

Commit

Permalink
界面缩放改进
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhaoZuohong committed May 2, 2024
1 parent c0268f5 commit 2d69a52
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
2 changes: 1 addition & 1 deletion ui/src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ function actions_on_resize() {
'--app-width',
`${window.innerWidth / webview.value.scale}px`
)
mobile.value = window.innerWidth < 800
mobile.value = window.innerWidth < 800 * webview.value.scale
}
const mobile = ref(true)
Expand Down
4 changes: 0 additions & 4 deletions ui/src/pages/Settings.vue
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,6 @@ for (let i = 0.5; i <= 3.0; i += 0.25) {
}
const new_scale = ref(webview.value.scale)
const scale_applicable = computed(() => {
new_scale.value != webview.value.scale
})
</script>

<template>
Expand Down

0 comments on commit 2d69a52

Please sign in to comment.