🐛 tooltip hovering

This commit is contained in:
2026-03-17 11:01:59 +10:00
parent 6567f1977a
commit 416c6c0d5c
3 changed files with 27 additions and 3 deletions

View File

@@ -173,6 +173,7 @@
}
.annotation-tooltip {
position: relative;
background: var(--message-bg);
border: 1px solid var(--border);
border-radius: 6px;
@@ -184,6 +185,20 @@
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}
/* Invisible bridge that extends CodeMirror's isInTooltip() hit-area into the
gap between the card and the annotation text, preventing the card from
dismissing while the mouse travels between them. */
.annotation-tooltip > .cm-tooltip-arrow {
position: absolute;
bottom: -12px;
left: 0;
right: 0;
height: 12px;
pointer-events: none;
background: transparent;
border: none;
}
.annotation-tooltip-divider {
height: 1px;
background: var(--border);