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 @@
- {{ format(hero.hp!) }}
- {{
+ format(hero.hp!)
+ }}
+ +{{ format(hero.hpmax!) }}/t
- {{ format(hero.atk!) }}
- {{
+ format(hero.atk!)
+ }}
+ +{{ format(hero.mana!) }}
{{ format(hero.def!) }}
{{ format(hero.mdef!) }}
{{ format(hero.money!) }}
{{ format(up) }}