Skip to content

Commit 377b528

Browse files
authored
fix(app): show hover background on subagent breadcrumbs (#63742)
1 parent 77b26fd commit 377b528

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

‎packages/app/src/session/session-identity-header.tsx‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -435,7 +435,8 @@ export function SessionLocation(props: {
435435
</Menu.Portal>
436436
</Menu>
437437
<Show when={props.trailing}>
438-
<SessionHeaderSeparator gap={8} before={6} after={4} />
438+
{/* A child's lineage follows, whose buttons pad 6px; a title pads 4px. */}
439+
<SessionHeaderSeparator gap={8} before={6} after={props.compact ? 6 : 4} />
439440
</Show>
440441
</>
441442
)
@@ -499,21 +500,20 @@ export function SessionAncestorTrail(props: {
499500
data-slot={ancestor.direct ? "session-title-parent" : "session-title-ancestor"}
500501
data-session-id={ancestor.id}
501502
title={ancestor.title}
502-
class="max-w-[min(200px,40vw)] shrink-0 truncate text-[13px] font-[530] leading-4 tracking-[-0.04px] text-v2-text-text-faint transition-colors hover:text-v2-text-text-muted"
503-
classList={{ "ps-1": index() === 0 }}
503+
class="h-7 max-w-[min(200px,40vw)] shrink-0 truncate rounded-[6px] px-1.5 text-[13px] font-[530] leading-4 tracking-[-0.04px] text-v2-text-text-faint transition-colors hover:bg-v2-overlay-simple-overlay-hover hover:text-v2-text-text-muted focus-visible:bg-v2-overlay-simple-overlay-hover focus-visible:text-v2-text-text-muted focus-visible:outline-none"
504504
onClick={() => open(props.sessionID, ancestor.id)}
505505
>
506506
<bdi dir="auto">{ancestor.title}</bdi>
507507
</button>
508508
<Show when={index() < ancestors().length - 1}>
509-
<SessionHeaderSeparator gap={8} before={0} after={0} />
509+
<SessionHeaderSeparator gap={8} before={6} after={6} />
510510
</Show>
511511
</>
512512
)}
513513
</For>
514514
</div>
515515
<Show when={props.trailing}>
516-
<SessionHeaderSeparator gap={8} before={0} after={4} />
516+
<SessionHeaderSeparator gap={8} before={6} after={4} />
517517
</Show>
518518
</div>
519519
)

0 commit comments

Comments
 (0)