This commit is contained in:
liubiren 2026-10-14 15:10:49 +08:00
parent e0c8f984e9
commit 7631674daf
1 changed files with 1 additions and 4 deletions

View File

@ -33,21 +33,18 @@ def task_history_item(
rx.text(
item.description,
flex=1,
height="22px",
line_height="22px",
line_height="20px",
padding_right="18px",
color="var(--prismui-color-2)",
text_overflow="ellipsis",
white_space="nowrap",
overflow="hidden",
),
display="flex",
align_items="center",
width="100%",
margin_bottom="8px",
),
width="100%",
cursor="pointer",
# 点击事件:将指定任务唯一标识设置为当前任务唯一标识
on_click=lambda: TaskState.set_task_id(item.id),
)