summaryrefslogtreecommitdiff
path: root/src/client/app.vue
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/app.vue')
-rw-r--r--src/client/app.vue5
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();