From 74a0efc32465c8cee6ac0448a0cdfff49d2c0a11 Mon Sep 17 00:00:00 2001 From: NY Date: Wed, 12 Mar 2025 17:52:32 +0800 Subject: [PATCH] fix --- pkg/dash/func/info.py | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/pkg/dash/func/info.py b/pkg/dash/func/info.py index 28a3c4a..80619a9 100644 --- a/pkg/dash/func/info.py +++ b/pkg/dash/func/info.py @@ -66,20 +66,14 @@ def update_info(n, target_value): style=table_style_l) ]), html.Tr([ - html.Td(f"Target: {target if target else '[TBD]'}", - colSpan=4, - style=table_style_c), - html.Td(f"Need's Avg Tweets Per Day: {avg_tweets_per_day}", - colSpan=4, - style=table_style_l) + html.Th("Target", colSpan=2, style=table_style_border), + html.Th("Need's Avg Tweets Per Day", colSpan=4, style=table_style_border), + html.Th("Avg Tweets", colSpan=2, style=table_style_border), ]), html.Tr([ - html.Td(f"Avg Tweets: {avg_tweets}", - colSpan=4, - style=table_style_c), - html.Td("", - colSpan=4, - style=table_style_l) + html.Td(f"{target if target else '[TBD]'}", colSpan=2, style=table_style_border), + html.Td(f"{avg_tweets_per_day}", colSpan=4, style=table_style_border), + html.Td(f"{avg_tweets}", colSpan=2, style=table_style_border), ]) ] pace_table = html.Table(pace_table_rows, style={