From ff0a646c81877c20cbc17ceb6991692086051042 Mon Sep 17 00:00:00 2001 From: NY Date: Tue, 11 Mar 2025 09:47:44 +0800 Subject: [PATCH] fix --- pkg/dash/app_init.py | 1 - pkg/dash/func/info.py | 8 ++++++++ pkg/dash/javascript.py | 6 ++++++ 3 files changed, 14 insertions(+), 1 deletion(-) diff --git a/pkg/dash/app_init.py b/pkg/dash/app_init.py index c544955..ef47559 100644 --- a/pkg/dash/app_init.py +++ b/pkg/dash/app_init.py @@ -21,4 +21,3 @@ for sub_dir in sub_dirs: - diff --git a/pkg/dash/func/info.py b/pkg/dash/func/info.py index 949d46b..7694004 100644 --- a/pkg/dash/func/info.py +++ b/pkg/dash/func/info.py @@ -58,6 +58,14 @@ def update_info(n): html.Td(format_time_str(get_time_since_last_tweet()), colSpan=4, style=table_style_l) + ]), + html.Tr([ + html.Td(f"Warning:", + colSpan=1, + style=table_style_c), + html.Td("1.Check Reply", + colSpan=7, + style=table_style_l) ]) ] pace_table = html.Table(pace_table_rows, style={ diff --git a/pkg/dash/javascript.py b/pkg/dash/javascript.py index 8e6c683..372e8ac 100644 --- a/pkg/dash/javascript.py +++ b/pkg/dash/javascript.py @@ -25,6 +25,12 @@ def setting_callback(): infoButton.addEventListener('mouseout', () => { infoTooltip.style.display = 'none'; }); + infoTooltip.addEventListener('mouseover', () => { + infoTooltip.style.display = 'block'; + }); + infoTooltip.addEventListener('mouseout', () => { + infoTooltip.style.display = 'none'; + }); } return window.dash_clientside.no_update; }