We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9e54a91 commit 164dbddCopy full SHA for 164dbdd
frontend/public/assistant.js
@@ -1,4 +1,4 @@
1
-;(function () {
+; (function () {
2
window.sqlbot_assistant_handler = window.sqlbot_assistant_handler || {}
3
const defaultData = {
4
id: '1',
@@ -170,6 +170,13 @@
170
chat_button_img = root.querySelector('.sqlbot-assistant-chat-button > img')
171
}
172
chat_button_img.style.display = 'block'
173
+ function resizeImg() {
174
+ const rate = window.outerWidth / window.innerWidth;
175
+ chat_button_img.style.width = `${30 * (1 / rate)}px`;
176
+ chat_button_img.style.height = `${30 * (1 / rate)}px`;
177
+ }
178
+ resizeImg()
179
+ window.addEventListener('resize', resizeImg);
180
// 对话框元素
181
const chat_container = root.querySelector('#sqlbot-assistant-chat-container')
182
// 引导层
0 commit comments