cursor
This commit is contained in:
@@ -116,6 +116,7 @@ struct SymbolPopupView: View {
|
||||
}
|
||||
.id(index)
|
||||
.onHover { if $0 { highlighted = index } }
|
||||
.pointerHand()
|
||||
.onTapGesture { open(SymbolTarget(path: def.path, line: def.line)) }
|
||||
}
|
||||
ForEach(Array(lookup.definitions.enumerated()), id: \.offset) { _, def in relations(def) }
|
||||
@@ -133,6 +134,7 @@ struct SymbolPopupView: View {
|
||||
.padding(.top, 8)
|
||||
.padding(.bottom, 2)
|
||||
.contentShape(Rectangle())
|
||||
.pointerHand()
|
||||
.onTapGesture { if let first = group.hits.first { open(SymbolTarget(path: group.path, line: first.line)) } }
|
||||
case let .hit(path, hit, index):
|
||||
SymbolRow(isHighlighted: highlighted == index) {
|
||||
@@ -147,6 +149,7 @@ struct SymbolPopupView: View {
|
||||
}
|
||||
.id(index)
|
||||
.onHover { if $0 { highlighted = index } }
|
||||
.pointerHand()
|
||||
.onTapGesture { open(SymbolTarget(path: path, line: hit.line)) }
|
||||
}
|
||||
}
|
||||
@@ -244,6 +247,7 @@ private struct SymbolChip: View {
|
||||
.overlay(RoundedRectangle(cornerRadius: 3).stroke(lit ? Palette.amberKeycapBorder : Palette.raised, lineWidth: Metrics.hairline))
|
||||
.contentShape(Rectangle())
|
||||
.onHover { hovering = $0 }
|
||||
.pointerHand(known)
|
||||
.onTapGesture { if known { follow() } }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user