Переглянути джерело

fix: chatbot not show all in small screen (#765)

Joel 1 рік тому
батько
коміт
2ba89d0deb
2 змінених файлів з 2 додано та 2 видалено
  1. 1 1
      web/public/embed.js
  2. 1 1
      web/public/embed.min.js

+ 1 - 1
web/public/embed.js

@@ -55,7 +55,7 @@ async function embedChatbot () {
     iframe.title = "dify chatbot bubble window"
     iframe.title = "dify chatbot bubble window"
     iframe.id = 'dify-chatbot-bubble-window'
     iframe.id = 'dify-chatbot-bubble-window'
     iframe.src = `${baseUrl}/chatbot/${difyChatbotConfig.token}`
     iframe.src = `${baseUrl}/chatbot/${difyChatbotConfig.token}`
-    iframe.style.cssText = 'border: none; position: fixed; flex-direction: column; justify-content: space-between; 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; height: 40rem; border-radius: 0.75rem; display: flex; z-index: 2147483647; overflow: hidden; left: unset; background-color: #F3F4F6;'
+    iframe.style.cssText = 'border: none; position: fixed; flex-direction: column; justify-content: space-between; 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;'
     document.body.appendChild(iframe);
     document.body.appendChild(iframe);
   }
   }
 
 

Різницю між файлами не показано, бо вона завелика
+ 1 - 1
web/public/embed.min.js