@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.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1323,7 +1323,7 @@ function flowAll(ctx, input, base2, reflow) {
|
|
|
1323
1323
|
const head = flow(ctx, headerGroups(doc, palette, u), zones.text, fonts);
|
|
1324
1324
|
const flanks = geo.flanks ?? [];
|
|
1325
1325
|
const tight = closeHeaderGap(geo, head, doc.tuning?.headerGap, u);
|
|
1326
|
-
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,
|
|
1326
|
+
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);
|
|
1327
1327
|
const sides = flanks.length > 0 ? equalFlanks(ctx, flankPriceGroups(doc, palette, u), flanks, fonts) : [emptyFlow()];
|
|
1328
1328
|
return { geo: tight, zones, head, body, sides };
|
|
1329
1329
|
}
|