This commit is contained in:
liubiren 2026-10-15 11:09:15 +08:00
parent 8cbba60654
commit 93bcc1f1b4
1880 changed files with 8 additions and 5 deletions

View File

@ -93,7 +93,11 @@ def task_history_item(
padding="5px 12px",
),
rx.hstack(
rx.cond(item.is_running, rx.image("/is_running.svg"), rx.fragment()),
rx.cond(
item.is_running,
rx.image("/is_running.svg"),
rx.image("/is_running.svg"),
),
# 渲染任务描述
rx.text(
item.description,
@ -275,7 +279,7 @@ def sidebar() -> rx.Component:
width="100%",
padding_bottom="16px",
),
# 渲染最近任务
# 最近任务
rx.vstack(
# 标题
rx.text(
@ -284,7 +288,7 @@ def sidebar() -> rx.Component:
font_size="var(--prismui-font-size-2)",
padding="5px 10px 5px 22px",
),
# 历史任务
# 渲染历史任务
task_history(),
gap="2px",
width="100%",

View File

@ -302,6 +302,5 @@ class AuthState(rx.State):
task_state = await self.get_state(TaskState)
task_state.user_id = ""
task_state.tasks = {}
task_state.actived_task_id = ""
task_state.is_task_history_shown = False
task_state.task_id = ""
self.user_id = ""

Binary file not shown.

View File

Before

Width:  |  Height:  |  Size: 16 KiB

After

Width:  |  Height:  |  Size: 16 KiB

Some files were not shown because too many files have changed in this diff Show More