diff --git a/src/ui/App.tsx b/src/ui/App.tsx index 6eeb384..272ab3b 100644 --- a/src/ui/App.tsx +++ b/src/ui/App.tsx @@ -10,10 +10,10 @@ import { LinkCard, LinkPicker, LinksPanel, NodeBacklinks, NodeRelated, TargetRow import { NodeBody, Outline, PendingSections, TopMatter } from "./Node"; import { Panes } from "./Panes"; import { PaneMap, Trail } from "./Pages"; -import { PANES_MIN_WIDTH, store, type Aux, type WRow } from "./store"; +import { PANES_MIN_WIDTH, store, type Aux } from "./store"; import { WikiPage, WikiView } from "./Wiki"; import { Usage } from "./Usage"; -import { FirstRun, Hints, Key, MenuHost, SelBar, closeMenu, hideBar, locate, locateIn, menuAt, menuShown, setCard, setPrompt, showBar, touch, type Hint } from "./Mouse"; +import { FirstRun, Hints, Key, MenuHost, SelBar, closeMenu, dragged, hideBar, locate, locateIn, menuAt, pointedPane, setCard, setPrompt, showBar, touch, wtextRow, type Hint } from "./Mouse"; import { press } from "./press"; function Page() { @@ -45,7 +45,7 @@ function ConflictCard({ c, selected }: { c: Conflict; selected: boolean }) { const kind = { "edit-edit": "both sides rewrote this", "edit-delete": "edited on one side, deleted on the other", contradiction: "contradicts another node" }[c.type]; const other = c.other && store.snap.nodes[c.other] ? label(store.snap, c.other) : null; return ( -
+
{c.title || "(untitled)"} {c.status} @@ -95,14 +95,13 @@ function HistoryPanel({ verdict }: { verdict: string }) { ref.current?.querySelector(".selected")?.scrollIntoView({ block: "nearest" }); }); const heads = new Set(); - let lastType = ""; const live = store.doc.snap(); const filter = store.historyFilter && live.nodes[store.historyFilter] ? store.historyFilter : null; const onRoot = isLibraryRoot(live, store.activeNode); return (