auto hide tooltip when scoll down

This commit is contained in:
binary-husky
2025-01-28 23:32:40 +08:00
parent 9f39a6571a
commit 9b0b2cf260
3 changed files with 30 additions and 4 deletions

View File

@@ -203,6 +203,7 @@ class WelcomeMessage {
const elem_chatbot = document.getElementById('gpt-chatbot');
const chatbot_top = elem_chatbot.getBoundingClientRect().top;
const welcome_card_container = document.getElementsByClassName('welcome-card-container')[0];
// detect if welcome card overflow
let welcome_card_overflow = false;
if (welcome_card_container) {