🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.
TypeScript agentagent-collaborationagent-harnessloop-engineeringmcppersonal-assistantproactive-agentskillssuper-agenttask-management
🐛 fix(agent-tasks): prevent schedule pill from wrapping in Kanban card (#14923)
Tsuki27f97b2e5234
diff --git a/src/features/AgentTasks/features/AgentTaskItem.tsx b/src/features/AgentTasks/features/AgentTaskItem.tsxindex 63e6f046aea..7548adb3848 100644--- a/src/features/AgentTasks/features/AgentTaskItem.tsx+++ b/src/features/AgentTasks/features/AgentTaskItem.tsx@@ -22,6 +22,8 @@ interface TaskItemProps {variant?: 'compact' | 'default';}+const FLEX_MIN_WIDTH_0 = { minWidth: 0 };+const TASK_STATUS_SET = new Set<TaskStatus>(['backlog','canceled',@@ -162,7 +164,7 @@ const AgentTaskItem = memo<TaskItemProps>(({ task, variant = 'default' }) => {/></Flexbox><TaskLatestActivity activities={taskDetail?.activities} />- <Flexbox horizontal align={'center'} gap={8}>+ <Flexbox horizontal align={'center'} gap={8} style={FLEX_MIN_WIDTH_0}><TaskPriorityTag priority={task.priority} taskIdentifier={task.identifier} />{scheduleNode}{timeNode}diff --git a/src/features/AgentTasks/features/TaskTriggerTag.tsx b/src/features/AgentTasks/features/TaskTriggerTag.tsxindex 96a591fb1d7..d4b5bba36b6 100644--- a/src/features/AgentTasks/features/TaskTriggerTag.tsx+++ b/src/features/AgentTasks/features/TaskTriggerTag.tsx@@ -18,6 +18,9 @@ interface TaskTriggerTagProps {scheduleTimezone?: string | null;}+const FLEX_MIN_WIDTH_0 = { minWidth: 0 };+const PILL_STYLE = { borderRadius: 24, minWidth: 0 };+const TaskTriggerTag = memo<TaskTriggerTagProps>(({ automationMode, heartbeatInterval, mode = 'tag', schedulePattern, scheduleTimezone }) => {const { t, i18n } = useTranslation('chat');@@ -63,11 +66,11 @@ const TaskTriggerTag = memo<TaskTriggerTagProps>(// plus timezone on hover, so no information is lost.return (<Tooltip title={data?.tooltip}>- <Flexbox horizontal align="center" gap={10} style={{ minWidth: 0 }}>+ <Flexbox horizontal align="center" gap={10} style={FLEX_MIN_WIDTH_0}><Icon color={cssVar.colorTextDescription} icon={ClockIcon} size={16} /><Textellipsis- style={{ minWidth: 0 }}+ style={FLEX_MIN_WIDTH_0}type={data ? undefined : 'secondary'}weight={data ? 500 : undefined}>@@ -90,11 +93,11 @@ const TaskTriggerTag = memo<TaskTriggerTagProps>(gap={4}height={24}paddingInline={'4px 8px'}- style={{ borderRadius: 24 }}+ style={PILL_STYLE}variant={'outlined'}><Icon color={cssVar.colorTextDescription} icon={ClockIcon} size={16} />- <Text fontSize={12} type={'secondary'}>+ <Text ellipsis fontSize={12} style={FLEX_MIN_WIDTH_0} type={'secondary'}>{data.primary}</Text></Block>