Skip to content

Commit 803a897

Browse files
committed
cli: Only draw deepest level of ancestor branches
1 parent a2fbf3c commit 803a897

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

cli/src/components/message-block.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,9 @@ export const MessageBlock = ({
8484
return ''
8585
}
8686
const ancestorPrefix = ancestorBranchStates
87-
.map((ancestorIsLast) => (ancestorIsLast ? ' ' : '│ '))
87+
// Skip first level of ancestors for less clutter
88+
.slice(1)
89+
.map(() => ' ')
8890
.join('')
8991
return `${ancestorPrefix}${isLastBranch ? '└ ' : '├ '}`
9092
}

0 commit comments

Comments
 (0)