fix(ui): improve desktop hover and cursor feedback

This commit is contained in:
t8y2 committed 2026-08-07 16:31:02 +08:00
1 parent 2df9a1dd48
commit 3affcbfa85
6 files changed
+31 -19

No files matched your search

@@ -707,7 +707,7 @@ const rowStyle = computed(() => {
paddingLeft: paddingLeft.value,
paddingRight: trailingComment.value ? "12px" : undefined,
"--tree-connection-row-bg": backgroundColor,
"--tree-connection-row-hover-bg": hexToRgba(color, isActiveConnectionScope.value ? 0.18 : 0.12),
"--tree-connection-row-hover-bg": hexToRgba(color, isActiveConnectionScope.value ? 0.2 : 0.16),
"--tree-connection-active-bg": hexToRgba(color, 0.18),
"--tree-connection-active-focus-bg": hexToRgba(color, 0.22),
};
@@ -1120,7 +1120,7 @@ function onKeydown(event: KeyboardEvent) {
<LightTooltip :text="visibleLabel(node)" :disabled="isTooltipDisabled()" side="right" :side-offset="8" :delay="0" :close-delay="30" :surface="detailTooltip ? 'popover' : 'foreground'">
<div
ref="rowRef"
class="group flex items-center gap-2 py-1 px-2 cursor-pointer relative outline-none"
class="group flex cursor-default items-center gap-2 py-1 px-2 relative outline-none"
style="contain: layout style"
:class="[
rowWidthClass,
@@ -1130,7 +1130,7 @@ function onKeydown(event: KeyboardEvent) {
'opacity-50': dragVisual.dragging,
'tree-item-connection-tint': connectionColor,
'hover:bg-accent': node.type !== 'connection',
'hover:bg-secondary/60': node.type === 'connection',
'hover:bg-sidebar-accent': node.type === 'connection',
rounded: !selectionVisual.rowSelected,
'tree-item-active': selectionVisual.rowSelected,
'tree-item-active--selection-set': selectionVisual.usesSelectionSetHighlight && selectionVisual.rowSelected,