diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2020-03-22 19:47:30 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2020-03-22 19:47:30 +0900 |
| commit | ecf44084dc5b679361f78c3e1df0d5c20b884308 (patch) | |
| tree | 2fc0e9414003b4c5ff8e0e1ba19fd58b50d50345 /src/client/app.vue | |
| parent | Merge branch 'develop' (diff) | |
| parent | 12.24.1 (diff) | |
| download | misskey-ecf44084dc5b679361f78c3e1df0d5c20b884308.tar.gz misskey-ecf44084dc5b679361f78c3e1df0d5c20b884308.tar.bz2 misskey-ecf44084dc5b679361f78c3e1df0d5c20b884308.zip | |
Merge branch 'develop'
Diffstat (limited to 'src/client/app.vue')
| -rw-r--r-- | src/client/app.vue | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/client/app.vue b/src/client/app.vue index b47c092ed2..650ebbd2b4 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(); |