From a87c11e8acda090c211ccae26f4e0834cc10625a Mon Sep 17 00:00:00 2001 From: Mohamed Boudra Date: Tue, 18 Aug 2026 09:21:51 +0200 Subject: [PATCH] fix(app): drop the track panel divider when the list is empty MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Bulk archive keeps the panel mounted with zero rows while it is archiving or after a failure — that is the state it lands in once it has archived every finished subagent. The divider under the action then had nothing beneath it and read as a hairline stranded at the bottom of the panel. --- packages/app/src/composer/tracks.tsx | 11 +++++++++-- packages/app/src/subagents/track.tsx | 2 +- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/packages/app/src/composer/tracks.tsx b/packages/app/src/composer/tracks.tsx index f162dbe2c..648025f76 100644 --- a/packages/app/src/composer/tracks.tsx +++ b/packages/app/src/composer/tracks.tsx @@ -156,11 +156,18 @@ function ComposerTrackPillTrigger({ * means travelling past every row it affects, which is the right price for it, and it cannot sit * under a thumb that was aiming for the nearest subagent. */ -export function ComposerTrackActions({ children }: { children: ReactNode }): ReactElement { +export function ComposerTrackActions({ + children, + /** False when the list below is empty — a divider with nothing under it separates nothing. */ + divided = true, +}: { + children: ReactNode; + divided?: boolean; +}): ReactElement { return ( <> {children} - + {divided ? : null} ); } diff --git a/packages/app/src/subagents/track.tsx b/packages/app/src/subagents/track.tsx index 30a48139e..a078dd0c5 100644 --- a/packages/app/src/subagents/track.tsx +++ b/packages/app/src/subagents/track.tsx @@ -83,7 +83,7 @@ export function SubagentsTrack({ statusBucket={pill.statusBucket} > {showArchiveFinished && onArchiveFinished ? ( - + 0}>