zhangjie 2 роки тому
батько
коміт
83ea338821

+ 1 - 2
src/modules/paper-export/assets/styles/paper-temp-preview.scss

@@ -126,11 +126,10 @@
   .element-item-paper-struct {
     height: auto !important;
   }
-
   .page-column-body {
     font-size: 0px;
   }
-  .elem-rich-text {
+  .rich-text {
     font-size: 14px;
   }
   .topic-element-preview {

+ 10 - 30
src/modules/paper-export/assets/styles/temp.css

@@ -1,10 +1,6 @@
 .paper-page {
   color: #000;
 }
-.paper-page.is-view .page-box {
-  margin-top: 10px;
-  margin-bottom: 10px;
-}
 .paper-page .page-box-A3.page-box-0 .page-main-inner {
   padding: 60px 40px 60px 160px;
 }
@@ -68,7 +64,7 @@
   position: absolute;
 }
 .paper-page .page-column-element .element-item::before {
-  border: 0;
+  border: none;
 }
 .elem-pane-box .elem-body {
   min-height: 60px;
@@ -90,36 +86,20 @@
   white-space: pre-wrap;
 }
 .elem-paper-struct ol {
-  padding-left: 15px;
+  padding-left: 20px;
 }
 .elem-paper-struct li {
   list-style: decimal;
 }
-.rich-text {
-  display: inline-block;
-  vertical-align: top;
-  line-height: 20px;
-}
-.rich-text img[data-is-answer-point] {
-  max-width: 100%;
-  max-height: 16px;
-  display: inline-block;
-  vertical-align: text-top;
-  border-bottom: 1px solid #000;
-}
-.rich-text audio {
-  height: 20px;
-  display: inline-block;
-  vertical-align: top;
-  margin-left: 5px;
-  margin-right: 5px;
+.paper-template-view .element-item-paper-struct {
+  height: auto !important;
 }
-.rich-text u {
-  text-decoration: underline;
+.paper-template-view .page-column-body {
+  font-size: 0px;
 }
-.rich-text i {
-  font-style: italic;
+.paper-template-view .rich-text {
+  font-size: 14px;
 }
-.rich-text b {
-  font-weight: 600;
+.paper-template-view .topic-element-preview {
+  font-size: 14px;
 }

Різницю між файлами не показано, бо вона завелика
+ 0 - 0
src/modules/paper-export/previewTemp.js


+ 3 - 0
src/modules/paper-export/views/PaperTemplateBuild.vue

@@ -503,6 +503,9 @@ export default {
 
         curOptions = [];
       });
+      this.renderStructList.forEach((elem) => {
+        if (elem.styles.width === "100%") elem.styles.display = "block";
+      });
     },
     buildPageAutoPage() {
       let pages = [];

Деякі файли не було показано, через те що забагато файлів було змінено