mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-10-23 15:36:33 +00:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user