From 9c3a4eb9478801061c97808808f8d9b98762e330 Mon Sep 17 00:00:00 2001 From: syuilo Date: Sun, 22 Mar 2020 19:41:35 +0900 Subject: [PATCH] Fix bug --- src/client/app.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/client/app.vue b/src/client/app.vue index b47c092ed..650ebbd2b 100644 --- a/src/client/app.vue +++ b/src/client/app.vue @@ -246,7 +246,10 @@ export default Vue.extend({ if (this.isDesktop) this.adjustWidgetsWidth(); const adjustTitlePosition = () => { - this.$refs.title.style.left = (this.$refs.main.getBoundingClientRect().left - this.$refs.nav.offsetWidth) + 'px'; + const left = this.$refs.main.getBoundingClientRect().left - this.$refs.nav.offsetWidth; + if (left >= 0) { + this.$refs.title.style.left = left + 'px'; + } }; adjustTitlePosition();