Extract a single NoteSearchList component and useNoteSearch hook that all three note-search UIs now share: wiki-link autocomplete, relations autocomplete, and Cmd+P quick open. All show note name + type badge consistently, with identical keyboard navigation behavior. - NoteSearchList: reusable result list with title + type badge - useNoteSearch: fuzzy search + arrow-key navigation hook - WikilinkSuggestionMenu: now wraps NoteSearchList - QuickOpenPalette: uses useNoteSearch + NoteSearchList - InlineAddNote: replaces <datalist> with proper search dropdown - AddRelationshipForm: replaces <datalist> with NoteTargetInput - InspectorPanels code health improved from 8.99 to 9.04 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
13 lines
361 B
CSS
13 lines
361 B
CSS
/* Wikilink autocomplete — floating menu container (positioned by BlockNote) */
|
|
.wikilink-menu {
|
|
background: var(--bg-primary, #fff);
|
|
border: 1px solid var(--border, rgba(0, 0, 0, 0.1));
|
|
border-radius: 6px;
|
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
|
|
max-height: 320px;
|
|
overflow: hidden;
|
|
min-width: 260px;
|
|
max-width: 400px;
|
|
z-index: 9999;
|
|
}
|