Open a note that also links as its article with the note on top
Words carrying a note and a Wikipedia link (one note with a body and a target, as the bulk linking pass made by merging links onto glosses, or a note and a link on the same words) opened only the note: a click toggled the gloss inline in both views, Enter did the same in the column, and in panes Enter opened the note's pane with the article folded to its summary. Now Enter or a click opens one page: the note's text first, then the article in full (in the column the note is hoisted and h returns to its words; in panes it is the next pane). A note's target is its own or that of a link on exactly its words. Node and web targets show their card beneath the note the same way. Browser tests cover click and keyboard in both views and the same-span case; the old test only covered the folded panes path. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014yB6q4BHMwptTX3YFtkRab
This commit is contained in:
1 parent
f86a06fa06
commit
02e044af35
11 files changed
+187
-57
No files matched your search
+1
-1
@@ -128,7 +128,7 @@ export function LinkPreview({ id }: { id: NodeId }) {
|
||||
|
||||
/** A node's own target, as a row at the foot of its text (the column; in panes a Wikipedia target is the article itself). */
|
||||
export function TargetRow({ id }: { id: NodeId }) {
|
||||
const r = store.snap.nodes[id]?.ref;
|
||||
const r = store.targetOf(id);
|
||||
if (!r) return null;
|
||||
const focused = sameAux(store.aux, { kind: "target", of: id });
|
||||
return (
|
||||
|
||||
Reference in new issue
Block a user