From dfcd28abce8e6c7fd9b716b535c31e0a5bdafea4 Mon Sep 17 00:00:00 2001 From: binary-husky Date: Mon, 22 Jul 2024 03:34:35 +0000 Subject: [PATCH] add width_to_hide_welcome --- themes/welcome.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/themes/welcome.js b/themes/welcome.js index 9068cd7e..25c82146 100644 --- a/themes/welcome.js +++ b/themes/welcome.js @@ -152,7 +152,8 @@ class WelcomeMessage { async update() { console.log('update') var page_width = document.documentElement.clientWidth; - if (!await this.isChatbotEmpty() || page_width < 1100) { + const width_to_hide_welcome = 1200; + if (!await this.isChatbotEmpty() || page_width < width_to_hide_welcome) { if (this.visible) { this.removeWelcome(); this.visible = false;