Browse Source

fix: 上传题卡预览问题

zhangjie 6 tháng trước cách đây
mục cha
commit
d616747653
2 tập tin đã thay đổi với 2 bổ sung2 xóa
  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
 .preview-frame {
   position: absolute;
-  top: 0;
+  top: 55px;
   left: 0;
   right: 0;
   bottom: 0;

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

@@ -165,7 +165,7 @@ export default {
       const iframeDom = document.createElement("iframe");
       document.getElementById("preview-frame").appendChild(iframeDom);
       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;`;
       const iframeDoc = iframeDom.contentDocument;
       iframeDoc.open();