Bladeren bron

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

natasha 5 maanden geleden
bovenliggende
commit
dd3c0f361c
2 gewijzigde bestanden met toevoegingen van 2 en 4 verwijderingen
  1. 1 2
      src/views/wordcard/printNew.vue
  2. 1 2
      src/views/wordcard/writeTableNew.vue

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

@@ -46,8 +46,7 @@
           class="right right-preview left-preview"
           class="right right-preview left-preview"
           :style="{
           :style="{
             borderColor: data.borderColor,
             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
           <div

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

@@ -118,8 +118,7 @@
           v-if="(isPreview && !showLeft) || !isPreview"
           v-if="(isPreview && !showLeft) || !isPreview"
           :style="{
           :style="{
             borderColor: data.borderColor,
             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">
           <div class="header-info-preview">