diff --git a/index.html b/index.html index a8681c8b4c..fd4e795e73 100644 --- a/index.html +++ b/index.html @@ -9,7 +9,7 @@ - +
diff --git a/package.json b/package.json index 0f6ae9c822..f039d41247 100644 --- a/package.json +++ b/package.json @@ -18,6 +18,7 @@ "@chenfengyuan/vue-qrcode": "^1.0.0", "babel-plugin-add-module-exports": "^0.2.1", "babel-plugin-lodash": "^3.2.11", + "body-scroll-lock": "^2.6.4", "chromatism": "^3.0.0", "cropperjs": "^1.4.3", "diff": "^3.0.1", diff --git a/src/App.scss b/src/App.scss index ea7b54e8d8..2190f91a3b 100644 --- a/src/App.scss +++ b/src/App.scss @@ -10,7 +10,8 @@ position: fixed; z-index: -1; height: 100%; - width: 100%; + left: 0; + right: -20px; background-size: cover; background-repeat: no-repeat; background-position: 0 50%; @@ -347,6 +348,7 @@ i[class*=icon-] { align-items: center; position: fixed; height: 50px; + box-sizing: border-box; .logo { display: flex; @@ -386,6 +388,7 @@ i[class*=icon-] { } .inner-nav { + position: relative; margin: auto; box-sizing: border-box; padding-left: 10px; diff --git a/src/App.vue b/src/App.vue index f1086e601a..8d7f6c79cf 100644 --- a/src/App.vue +++ b/src/App.vue @@ -4,6 +4,7 @@ :style="bgAppStyle" >
@@ -14,20 +15,20 @@ class="nav-bar container" @click="scrollToTop()" > -