Allow portrait documents to render somewhat taller because gaps were being left between them depending on window width.
This commit is contained in:
@@ -86,7 +86,7 @@ const aspectByKey = ref<Record<string, number>>({})
|
|||||||
const optimalRowHeightPx = (ratios: number[]) => {
|
const optimalRowHeightPx = (ratios: number[]) => {
|
||||||
const w = Math.max(1, columnWidthPx.value)
|
const w = Math.max(1, columnWidthPx.value)
|
||||||
const minH = Math.max(1, Math.round(7 * emPx.value))
|
const minH = Math.max(1, Math.round(7 * emPx.value))
|
||||||
const maxH = Math.max(minH, Math.round(25 * emPx.value))
|
const maxH = Math.max(minH, Math.round(30 * emPx.value))
|
||||||
const usable = ratios.filter(ar => Number.isFinite(ar) && ar > 0)
|
const usable = ratios.filter(ar => Number.isFinite(ar) && ar > 0)
|
||||||
if (usable.length === 0) return Math.round(15 * emPx.value)
|
if (usable.length === 0) return Math.round(15 * emPx.value)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user