ui: keep caret shadow outside menu only

cx
This commit is contained in:
vicrodh committed 2026-01-22 12:11:08 -06:00
1 parent bed6c83192
commit df9798c8d8
1 file changed
+9 -7
+9 -7
View File
@@ -524,8 +524,6 @@
border-top: 9px solid transparent; border-top: 9px solid transparent;
border-bottom: 9px solid transparent; border-bottom: 9px solid transparent;
pointer-events: none; pointer-events: none;
/* Strong, directional shadow so the caret stays visible over hovered rows */
filter: drop-shadow(2px 3px 6px rgba(0, 0, 0, 0.85));
} }
.menu.open-left::after { .menu.open-left::after {
@@ -538,7 +536,7 @@
border-right: 9px solid var(--bg-tertiary); border-right: 9px solid var(--bg-tertiary);
} }
/* Subtle outline so the caret remains visible over hovered rows */ /* Shadow for caret (only outward, never over the menu) */
.menu.open-left::before, .menu.open-left::before,
.menu.open-right::before { .menu.open-right::before {
content: ''; content: '';
@@ -550,16 +548,20 @@
border-top: 10px solid transparent; border-top: 10px solid transparent;
border-bottom: 10px solid transparent; border-bottom: 10px solid transparent;
pointer-events: none; pointer-events: none;
opacity: 0.9;
filter: blur(2px);
} }
.menu.open-left::before { .menu.open-left::before {
right: -9px; right: -5px;
border-left: 10px solid rgba(255, 255, 255, 0.06); transform: translate(4px, -50%);
border-left: 10px solid rgba(0, 0, 0, 0.9);
} }
.menu.open-right::before { .menu.open-right::before {
left: -9px; left: -5px;
border-right: 10px solid rgba(255, 255, 255, 0.06); transform: translate(-4px, -50%);
border-right: 10px solid rgba(0, 0, 0, 0.9);
} }
.menu-item { .menu-item {