fix: show pointer cursor when hovering titlebar agent badge (#754)

The badge's inner dot and count spans inherited the titlebar's
-webkit-app-region: drag, which overrode the button's cursor: pointer.
Disable pointer events on the children so hover/click hit-test the
button itself (which opts out of the drag region).
This commit is contained in:
Jinjing 2026-04-17 00:09:03 -07:00 committed by GitHub
parent 6226d5936b
commit eced42167f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 9 additions and 0 deletions

View File

@ -365,6 +365,15 @@
cursor: pointer;
}
/* Why: the titlebar is a drag region, and descendant elements inherit that
region unless they opt out. Without this, hovering the dot/count spans
inside the badge showed the default cursor instead of pointer because the
drag region overrode the button's cursor. pointer-events: none forwards
hover/click hit-testing to the button, which already has no-drag set. */
.titlebar-agent-badge > * {
pointer-events: none;
}
.titlebar-agent-badge:hover {
background: var(--accent);
border-color: var(--border);