Răsfoiți Sursa

fix: 上传题卡预览问题

zhangjie 6 luni în urmă
părinte
comite
d616747653
2 a modificat fișierele cu 2 adăugiri și 2 ștergeri
  1. 1 1
      src/assets/styles/pages.scss
  2. 1 1
      src/modules/card/views/CardPreview.vue

+ 1 - 1
src/assets/styles/pages.scss

@@ -367,7 +367,7 @@
 // page-preview
 // page-preview
 .preview-frame {
 .preview-frame {
   position: absolute;
   position: absolute;
-  top: 0;
+  top: 55px;
   left: 0;
   left: 0;
   right: 0;
   right: 0;
   bottom: 0;
   bottom: 0;

+ 1 - 1
src/modules/card/views/CardPreview.vue

@@ -165,7 +165,7 @@ export default {
       const iframeDom = document.createElement("iframe");
       const iframeDom = document.createElement("iframe");
       document.getElementById("preview-frame").appendChild(iframeDom);
       document.getElementById("preview-frame").appendChild(iframeDom);
       const wwidth = window.innerWidth;
       const wwidth = window.innerWidth;
-      const wheight = window.innerHeight - 10;
+      const wheight = window.innerHeight - 60;
       iframeDom.style.cssText = `width: ${wwidth}px;height: ${wheight}px;border:none;outline:none;`;
       iframeDom.style.cssText = `width: ${wwidth}px;height: ${wheight}px;border:none;outline:none;`;
       const iframeDoc = iframeDom.contentDocument;
       const iframeDoc = iframeDom.contentDocument;
       iframeDoc.open();
       iframeDoc.open();