From 8130935c20ca9cc84b89f21f8a4a5936215bc8ab Mon Sep 17 00:00:00 2001 From: liubiren Date: Wed, 14 Oct 2026 15:16:59 +0800 Subject: [PATCH] 1 --- agent/application/pages/task.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/agent/application/pages/task.py b/agent/application/pages/task.py index 349b491..341bdc3 100644 --- a/agent/application/pages/task.py +++ b/agent/application/pages/task.py @@ -19,7 +19,7 @@ def task_history_item( """ 任务历史项 :param item: 任务历史项 - :return: Component + :return: rx.Component """ # 高亮 @@ -29,7 +29,7 @@ def task_history_item( return rx.list.item( rx.hstack( - # 任务历史项的任务描述 + # 渲染任务历史项的任务描述 rx.text( item.description, flex=1, @@ -38,13 +38,15 @@ def task_history_item( color="var(--prismui-color-2)", text_overflow="ellipsis", white_space="nowrap", - overflow="hidden", + cursor="inherit", ), align_items="center", width="100%", margin_bottom="8px", + cursor="pointer", ), width="100%", + cursor="pointer", # 点击事件:将指定任务唯一标识设置为当前任务唯一标识 on_click=lambda: TaskState.set_task_id(item.id), )