From de128728d62f65efd5c22e270988df6e886cfeb9 Mon Sep 17 00:00:00 2001 From: Jinjing <6427696+AmethystLiang@users.noreply.github.com> Date: Mon, 13 Apr 2026 15:20:33 -0700 Subject: [PATCH] fix: remove bottom gap in active agent hovercard (#596) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix: remove bottom gap in active agent hovercard Move the container's bottom padding into the hide button itself so it sits flush at the card edge with no visible gap. * fix: switch agent activity badge from hover to click popover Hover was unpredictable — replace HoverCard with Popover so the active-agent list opens on click instead. --- src/renderer/src/App.tsx | 18 +++++++++--------- src/renderer/src/assets/main.css | 4 ++-- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/src/renderer/src/App.tsx b/src/renderer/src/App.tsx index 431bd6827..92ed4143f 100644 --- a/src/renderer/src/App.tsx +++ b/src/renderer/src/App.tsx @@ -33,7 +33,7 @@ import { registerUpdaterBeforeUnloadBypass } from './lib/updater-beforeunload' import { buildWorkspaceSessionPayload } from './lib/workspace-session' import { countWorkingAgents, countWorkingAgentsPerWorktree } from './lib/agent-status' import { activateAndRevealWorktree } from './lib/worktree-activation' -import { HoverCard, HoverCardTrigger, HoverCardContent } from '@/components/ui/hover-card' +import { Popover, PopoverTrigger, PopoverContent } from '@/components/ui/popover' import { findWorktreeById } from '@/store/slices/worktree-helpers' const isMac = navigator.userAgent.includes('Mac') @@ -560,9 +560,9 @@ function App(): React.JSX.Element { )}
Orca
{settings?.showTitlebarAgentActivity !== false ? ( - - - + + + +
0 ? ' titlebar-agent-hovercard-header-with-list' : ''}`} > @@ -615,8 +615,8 @@ function App(): React.JSX.Element { > Hide from titlebar - - + + ) : null}
{/* Why: keep the center titlebar slot mounted even when tabs are hidden. diff --git a/src/renderer/src/assets/main.css b/src/renderer/src/assets/main.css index e6f03df24..ed25c5cf7 100644 --- a/src/renderer/src/assets/main.css +++ b/src/renderer/src/assets/main.css @@ -388,7 +388,7 @@ width: auto; min-width: 180px; max-width: 280px; - padding: 8px 0; + padding: 8px 0 0; } .titlebar-agent-hovercard-header { @@ -407,7 +407,7 @@ display: flex; align-items: center; width: 100%; - padding: 5px 12px; + padding: 5px 12px 8px; margin-top: 4px; border-top: 1px solid var(--border); background: none;