소스 검색

fix: user-select style and pre-create iframe in embed.js (#8093)

cr-zhichen 8 달 전
부모
커밋
551b33c8e5
2개의 변경된 파일4개의 추가작업 그리고 1개의 파일을 삭제
  1. 4 1
      web/public/embed.js
  2. 0 0
      web/public/embed.min.js

+ 4 - 1
web/public/embed.js

@@ -73,7 +73,7 @@
         box-shadow: rgba(150, 150, 150, 0.2) 0px 10px 30px 0px, rgba(150, 150, 150, 0.2) 0px 0px 0px 1px;
         bottom: 5rem; right: 1rem; width: 24rem; max-width: calc(100vw - 2rem); height: 40rem;
         max-height: calc(100vh - 6rem); border-radius: 0.75rem; display: flex; z-index: 2147483647;
-        overflow: hidden; left: unset; background-color: #F3F4F6;
+        overflow: hidden; left: unset; background-color: #F3F4F6;user-select: none;
       `;
 
       document.body.appendChild(iframe);
@@ -255,6 +255,9 @@
     if (!document.getElementById(buttonId)) {
       createButton();
     }
+
+    createIframe();
+    document.getElementById(iframeId).style.display = 'none';
   }
 
   // Add esc Exit keyboard event triggered

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 0 - 0
web/public/embed.min.js


이 변경점에서 너무 많은 파일들이 변경되어 몇몇 파일들은 표시되지 않았습니다.