mirror of
https://github.com/AutoMaker-Org/automaker.git
synced 2026-02-02 08:33:36 +00:00
feat(TaskNode): conditionally render title and adjust description styling
This commit is contained in:
@@ -279,9 +279,19 @@ export const TaskNode = memo(function TaskNode({ data, selected }: TaskNodeProps
|
|||||||
</span>
|
</span>
|
||||||
|
|
||||||
{/* Title */}
|
{/* Title */}
|
||||||
<h3 className="text-sm font-medium mt-1 line-clamp-2 text-foreground">
|
{data.title && (
|
||||||
|
<h3 className="text-sm font-medium mt-1 line-clamp-1 text-foreground">{data.title}</h3>
|
||||||
|
)}
|
||||||
|
|
||||||
|
{/* Description */}
|
||||||
|
<p
|
||||||
|
className={cn(
|
||||||
|
'text-xs text-muted-foreground line-clamp-2',
|
||||||
|
data.title ? 'mt-1' : 'mt-1 font-medium text-foreground text-sm'
|
||||||
|
)}
|
||||||
|
>
|
||||||
{data.description}
|
{data.description}
|
||||||
</h3>
|
</p>
|
||||||
|
|
||||||
{/* Progress indicator for in-progress tasks */}
|
{/* Progress indicator for in-progress tasks */}
|
||||||
{data.isRunning && (
|
{data.isRunning && (
|
||||||
|
|||||||
Reference in New Issue
Block a user