@homebound/beam 2.91.2 → 2.91.3
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.
|
@@ -340,7 +340,7 @@ function calcVirtualGridColumns(columns, firstLastColumnWidth) {
|
|
|
340
340
|
else {
|
|
341
341
|
throw new Error("as=virtual only supports px, percentage, or fr units");
|
|
342
342
|
}
|
|
343
|
-
}, { claimedPercentages: 0, claimedPixels: 0, totalFr: 0 });
|
|
343
|
+
}, { claimedPercentages: 0, claimedPixels: firstLastColumnWidth ? firstLastColumnWidth * 2 : 0, totalFr: 0 });
|
|
344
344
|
// This is our "fake but for some reason it lines up better" fr calc
|
|
345
345
|
function fr(myFr) {
|
|
346
346
|
return `calc((100% - ${claimedPercentages}% - ${claimedPixels}px) * (${myFr} / ${totalFr}))`;
|