修改报错
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user