Ver código fonte

文章标题居中

natasha 1 mês atrás
pai
commit
1c92bf11d3

+ 7 - 1
src/views/bookShelf/components/ArticleInfo.vue

@@ -5,7 +5,13 @@
       @click="closeDialog"
       :style="{ color: colorObj.sourceColor }"
     ></i>
-    <h2 :style="{ color: colorObj.titleColor }">
+    <h2
+      :style="{
+        color: colorObj.titleColor,
+        wordBreak: 'break-word',
+        textAlign: 'center',
+      }"
+    >
       {{ articleInfo.art_corpus_data.artTitle }}
     </h2>
     <h6 class="nnpe-article-author" :style="{ color: colorObj.sourceColor }">

+ 2 - 0
src/views/bookShelf/components/InnerTextSearch.vue

@@ -84,6 +84,8 @@
           marginRight: '10px',
           fontWeight: '700',
           cursor: 'pointer',
+          wordBreak: 'break-word',
+          textAlign: 'center',
         }"
         >{{ articleInfo.art_title }}</span
       >

+ 4 - 0
src/views/bookShelf/components/LexicalType.vue

@@ -167,6 +167,8 @@
           marginRight: '10px',
           fontWeight: '700',
           cursor: 'pointer',
+          wordBreak: 'break-word',
+          textAlign: 'center',
         }"
         >{{ articleInfo.art_title }}</span
       >
@@ -611,6 +613,8 @@
               marginRight: '10px',
               fontWeight: '700',
               cursor: 'pointer',
+              wordBreak: 'break-word',
+              textAlign: 'center',
             }"
             >{{ articleInfo.art_title }}</span
           >

+ 2 - 0
src/views/bookShelf/components/NormalModel.vue

@@ -103,6 +103,8 @@
           marginRight: '10px',
           fontWeight: '700',
           cursor: 'pointer',
+          wordBreak: 'break-word',
+          textAlign: 'center',
         }"
         >{{ articleInfo.art_title }}</span
       >

+ 2 - 0
src/views/bookShelf/components/NotesModel.vue

@@ -12,6 +12,8 @@
               marginRight: '10px',
               fontWeight: '700',
               cursor: 'pointer',
+              wordBreak: 'break-word',
+              textAlign: 'center',
             }"
           >
             <span

+ 2 - 0
src/views/bookShelf/components/PhraseModel.vue

@@ -93,6 +93,8 @@
           marginRight: '10px',
           fontWeight: '700',
           cursor: 'pointer',
+          wordBreak: 'break-word',
+          textAlign: 'center',
         }"
         >{{ articleInfo.art_title }}</span
       >

+ 2 - 0
src/views/bookShelf/components/PracticeModel.vue

@@ -71,6 +71,8 @@
           marginRight: '10px',
           fontWeight: '700',
           cursor: 'pointer',
+          wordBreak: 'break-word',
+          textAlign: 'center',
         }"
         >{{ articleInfo.art_title }}</span
       >

+ 2 - 0
src/views/bookShelf/components/PrintModel.vue

@@ -25,6 +25,7 @@
                 fontWeight: '700',
                 cursor: 'pointer',
                 wordBreak: 'break-word',
+                textAlign: 'center',
               }"
               >{{ articleInfo.art_title }}</span
             >
@@ -215,6 +216,7 @@
               color: printForm.color,
               fontSize: printForm.fontSize + 'px',
               lineHeight: printForm.lineHeight,
+              wordBreak: 'break-word',
             }"
           ></div>
           <template v-if="printForm.range.indexOf('vocab') > -1">