Your Name 2 年之前
父節點
當前提交
080bc9e7b7

+ 2
- 2
src/components/CoverBtn.vue 查看文件

@@ -37,7 +37,7 @@ import { computed, ref } from 'vue';
37 37
 <style lang="less" scoped>
38 38
 .cover-btn {
39 39
   position: absolute;
40
-  // background: rgba(255, 0, 0, 0.5);
41
-  z-index: 10;
40
+  background: rgba(255, 0, 0, 0.5);
41
+  z-index: 100;
42 42
 }
43 43
 </style>

+ 0
- 3
src/components/Image.vue 查看文件

@@ -42,9 +42,6 @@
42 42
 
43 43
 <style lang="less" scoped>
44 44
 .page-image {
45
-  position: absolute;
46
-  top: 0;
47
-  left: 0;
48 45
   display: block;
49 46
   width: 100%;
50 47
 }

+ 1
- 0
src/components/TGradient.vue 查看文件

@@ -12,6 +12,7 @@
12 12
 <style lang="less" scoped>
13 13
   .t-gradient-box {
14 14
     position: absolute;
15
+    height: 20px;
15 16
     z-index: 26;
16 17
     background: linear-gradient(0, transparent, v-bind(color), transparent);
17 18
   }

+ 0
- 1
src/pages/index/index.vue 查看文件

@@ -26,7 +26,6 @@
26 26
     const { width, height } = e.target;
27 27
     gdStyle.value = {
28 28
       width: `${width}px`,
29
-      height: '20px',
30 29
       left: 0,
31 30
       top: `${height - 10}px`
32 31
     }

+ 2
- 0
src/pages/makeSaving/index.vue 查看文件

@@ -127,6 +127,8 @@
127 127
 <style lang="less" scoped>
128 128
   .making-page {
129 129
     .poem-wrapper {
130
+      overflow: hidden;
131
+
130 132
       .poem-author {
131 133
         background: transparent;
132 134
         position: absolute;

+ 1
- 0
src/style.css 查看文件

@@ -24,4 +24,5 @@ img {
24 24
   width: 100vw;
25 25
   height: 100vh;
26 26
   background-color: #0f2c37;
27
+  overflow: hidden;
27 28
 }

+ 3
- 2
src/utils/page.js 查看文件

@@ -1,8 +1,9 @@
1 1
 
2 2
 // 这个值先取, 不能动态
3 3
 // 因为移动端出现输入法的时候会变
4
-const height = document.documentElement.clientHeight || document.body.clientHeight;
4
+const height = document.body.clientHeight;
5 5
 
6 6
 export function getPageStyle(fitHeight) {
7
-  return fitHeight > height ? { height: `${fitHeight}px`, overflow: 'hidden' } : { height: `${height}px`, overflow: 'hidden' }
7
+  // return fitHeight > height ? { height: `${fitHeight}px`, overflow: 'hidden' } : { height: `${height}px`, overflow: 'hidden' }
8
+  return {};
8 9
 }