@dloizides/poster-render 0.11.1 → 0.11.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -1321,7 +1321,7 @@ function flowAll(ctx, input, base2, reflow) {
1321
1321
  const head = flow(ctx, headerGroups(doc, palette, u), zones.text, fonts);
1322
1322
  const flanks = geo.flanks ?? [];
1323
1323
  const tight = closeHeaderGap(geo, head, doc.tuning?.headerGap, u);
1324
- const body = flow(ctx, bodyGroups(doc, palette, u, { withPrices: flanks.length === 0, compact: reflow.compact, wrap: reflow.wrap, dateScale: doc.tuning?.itemDateScale }), { ...tight.body, room: Math.max(tight.body.w, base2.body.w) }, fonts);
1324
+ const body = flow(ctx, bodyGroups(doc, palette, u, { withPrices: flanks.length === 0, compact: reflow.compact, wrap: reflow.wrap, dateScale: doc.tuning?.itemDateScale }), { ...tight.body, room: Math.max(tight.body.w, input.width - Math.round(Math.min(input.width, input.height) * MARGIN2) - tight.body.x) }, fonts);
1325
1325
  const sides = flanks.length > 0 ? equalFlanks(ctx, flankPriceGroups(doc, palette, u), flanks, fonts) : [emptyFlow()];
1326
1326
  return { geo: tight, zones, head, body, sides };
1327
1327
  }