From 1edaa9e234d730616cd5572bea37ef7bc11dd7a7 Mon Sep 17 00:00:00 2001 From: binary-husky Date: Sun, 21 Jul 2024 15:04:38 +0000 Subject: [PATCH] hide when too narrow --- themes/welcome.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/themes/welcome.js b/themes/welcome.js index adfa1827..9068cd7e 100644 --- a/themes/welcome.js +++ b/themes/welcome.js @@ -150,8 +150,9 @@ class WelcomeMessage { } async update() { - // console.log('update') - if (!await this.isChatbotEmpty()) { + console.log('update') + var page_width = document.documentElement.clientWidth; + if (!await this.isChatbotEmpty() || page_width < 1100) { if (this.visible) { this.removeWelcome(); this.visible = false;