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

This commit is contained in:
Maurice
2026-10-23 04:33:04 +00:00
parent fa29ee9ea4
commit 08d7c37217
+1 -1
View File
@@ -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;