Browse Source

文章标题换行

natasha 1 year ago
parent
commit
81cf8a7562

+ 1 - 0
src/components/Adult/preview/ArticleViewChs/NormalModelChs.vue

@@ -1646,6 +1646,7 @@ export default {
         > div {
           display: flex;
           justify-content: center;
+          flex-flow: wrap;
         }
       }
     }

+ 1 - 0
src/components/Adult/preview/ArticleViewChs/PhraseModelChs.vue

@@ -1475,6 +1475,7 @@ export default {
           display: flex;
           justify-content: center;
           width: 100%;
+          flex-flow: wrap;
         }
       }
     }

+ 1 - 0
src/components/Adult/preview/ArticleViewChs/WordModelChs.vue

@@ -1185,6 +1185,7 @@ export default {
           display: flex;
           justify-content: center;
           width: 100%;
+          flex-flow: wrap;
         }
       }
     }

+ 1 - 0
src/components/Adult/preview/DialogueArticleViewChs/AnswerModel.vue

@@ -1422,6 +1422,7 @@ export default {
         > div {
           display: flex;
           justify-content: center;
+          flex-flow: wrap;
         }
       }
     }

+ 1 - 0
src/components/Adult/preview/DialogueArticleViewChs/NormalModelChs.vue

@@ -1230,6 +1230,7 @@ export default {
         > div {
           display: flex;
           justify-content: center;
+          flex-flow: wrap;
         }
       }
     }

+ 6 - 5
src/components/Adult/preview/DialogueArticleViewChs/PhraseModelChs.vue

@@ -626,11 +626,11 @@ export default {
         if (val) {
           setTimeout(() => {
             _this.cardHeight = _this.$refs.notecard.offsetHeight;
-            // if (_this.screenHeight - _this.clientY > _this.cardHeight) {
-            //   _this.top = _this.clientY + 20;
-            // } else {
-            //   _this.top = _this.clientY - _this.cardHeight - 30;
-            // }
+            if (_this.screenHeight - _this.clientY > _this.cardHeight) {
+              _this.top = _this.clientY + 20;
+            } else {
+              _this.top = _this.clientY - _this.cardHeight - 30;
+            }
           }, 50);
         }
       },
@@ -1239,6 +1239,7 @@ export default {
         > div {
           display: flex;
           justify-content: center;
+          flex-flow: wrap;
         }
       }
     }

+ 1 - 0
src/components/Adult/preview/DialogueArticleViewChs/WordModelChs.vue

@@ -1097,6 +1097,7 @@ export default {
         > div {
           display: flex;
           justify-content: center;
+          flex-flow: wrap;
         }
       }
     }