修改报错

This commit is contained in:
2026-04-22 14:45:03 +08:00
parent ce04cd0a74
commit f01cbca59f

View File

@@ -106,7 +106,7 @@ def _render_thread_item(thread: dict):
is_current = thread_id == AppState.get_current_thread_id() is_current = thread_id == AppState.get_current_thread_id()
# 根据是否当前线程改变按钮样式 # 根据是否当前线程改变按钮样式
btn_type = "primary" if is_current else "tertiary" btn_type = "primary" if is_current else "secondary"
# 为了避免内容过长,截断摘要 # 为了避免内容过长,截断摘要
display_text = summary[:15] + "..." if len(summary) > 15 else summary display_text = summary[:15] + "..." if len(summary) > 15 else summary