fix(app): drop the track panel divider when the list is empty

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.
This commit is contained in:
Mohamed Boudra
2026-08-18 09:21:51 +02:00
parent b880a70e73
commit a87c11e8ac
2 changed files with 10 additions and 3 deletions
+9 -2
View File
@@ -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}
<MenuSeparator />
{divided ? <MenuSeparator /> : null}
</>
);
}
+1 -1
View File
@@ -83,7 +83,7 @@ export function SubagentsTrack({
statusBucket={pill.statusBucket}
>
{showArchiveFinished && onArchiveFinished ? (
<ComposerTrackActions>
<ComposerTrackActions divided={rows.length > 0}>
<ArchiveFinishedRow
status={archiveFinishedStatus}
disabled={isArchivingFinished}