Skip to content

armgit / TREK

Public Imported from GitHub
0

The most complete open-source travel planner: real-time collaboration, bookings, budgets, packing lists, journals, offline PWA, SSO and an AI-ready MCP server, with planet-wide place search and routing built in.

fix(journey): a placed list hands on the words after it as a list of their own, which the server and client compile

Maurice08d7c3721736
diff --git a/shared/src/book/design/design-spreads.ts b/shared/src/book/design/design-spreads.ts
index 3c1c2dc90..e2e4f3c5a 100644
--- a/shared/src/book/design/design-spreads.ts
+++ b/shared/src/book/design/design-spreads.ts
@@ -203,7 +203,7 @@ function setPassage(c: ComposeCtx, passage: Passage, after: readonly FlowItem[],
function setNext(c: ComposeCtx, item: FlowItem, after: readonly FlowItem[], foot: Foot, waits: boolean): Step | null {
if (item.kind === 'story') return setPassage(c, item, after, foot);
const list = listUnder(c, item.entry, foot);
- if (list) return { els: [list], end: list.frame.y + list.frame.h, rest: after, cut: false };
+ if (list) return { els: [list], end: list.frame.y + list.frame.h, rest: [...after], cut: false };
if (waits && listHeight(c, item.entry) <= liveBox(c, 'left').h) return null;
const [next, ...later] = after;
return next?.kind === 'story' ? setPassage(c, next, later, foot) : null;