From e165bc9f749fc0348518cd430d04f72434ef9b42 Mon Sep 17 00:00:00 2001 From: unanmed <1319491857@qq.com> Date: Thu, 29 Dec 2022 14:05:16 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84=E7=8A=B6=E6=80=81=E6=A0=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/box.vue | 4 ++- src/ui/statusBar.vue | 58 ++++++++++++++++++++++++++---------------- 2 files changed, 39 insertions(+), 23 deletions(-) diff --git a/src/components/box.vue b/src/components/box.vue index 5521735..367f485 100644 --- a/src/components/box.vue +++ b/src/components/box.vue @@ -67,7 +67,9 @@ let topB: HTMLDivElement; let bottomB: HTMLDivElement; let drag: HTMLElement; -const width = ref(isMobile ? window.innerWidth - 100 : 300); +const width = ref( + isMobile ? window.innerWidth - 100 : window.innerWidth * 0.175 +); const height = ref(isMobile ? 250 : window.innerHeight - 100); const left = ref(50); const top = ref(50); diff --git a/src/ui/statusBar.vue b/src/ui/statusBar.vue index 345d427..9115ae8 100644 --- a/src/ui/statusBar.vue +++ b/src/ui/statusBar.vue @@ -18,8 +18,12 @@