forked from farhoodlabs/paperclip
feat: show sub-task count in title when parent is collapsed
When a parent issue is collapsed, its title is suffixed with "(N sub-tasks)" so the count remains visible at a glance. The suffix disappears when the parent is expanded. Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
@@ -697,6 +697,11 @@ export function IssuesList({
|
||||
issue={issue}
|
||||
issueLinkState={issueLinkState}
|
||||
className={isChild ? "pl-6 sm:pl-7" : undefined}
|
||||
titleSuffix={hasChildren && !isExpanded ? (
|
||||
<span className="ml-1.5 text-xs text-muted-foreground">
|
||||
({children.length} sub-task{children.length !== 1 ? "s" : ""})
|
||||
</span>
|
||||
) : undefined}
|
||||
mobileLeading={
|
||||
hasChildren ? (
|
||||
<button type="button" onClick={toggleCollapse}>
|
||||
|
||||
Reference in New Issue
Block a user