Procházet zdrojové kódy

字词卡片居中稍微向上调一下

natasha před 5 měsíci
rodič
revize
dd3c0f361c

+ 1 - 2
src/views/wordcard/printNew.vue

@@ -46,8 +46,7 @@
           class="right right-preview left-preview"
           :style="{
             borderColor: data.borderColor,
-            display: data.right.collocation || data.right.exampleSent || data.right.definition ? 'block' : 'flex',
-            justifyContent: data.right.collocation || data.right.exampleSent || data.right.definition ? '' : 'center',
+            paddingTop: data.right.collocation || data.right.exampleSent || data.right.definition ? '' : '130px',
           }"
         >
           <div

+ 1 - 2
src/views/wordcard/writeTableNew.vue

@@ -118,8 +118,7 @@
           v-if="(isPreview && !showLeft) || !isPreview"
           :style="{
             borderColor: data.borderColor,
-            display: data.right.collocation || data.right.exampleSent || data.right.definition ? 'block' : 'flex',
-            justifyContent: data.right.collocation || data.right.exampleSent || data.right.definition ? '' : 'center',
+            paddingTop: data.right.collocation || data.right.exampleSent || data.right.definition ? '' : '130px',
           }"
         >
           <div class="header-info-preview">