sanity 5.2.0-next.75 → 5.2.0-next.77
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/lib/_chunks-es/PresentationToolGrantsCheck.js +1 -5
- package/lib/_chunks-es/PresentationToolGrantsCheck.js.map +1 -1
- package/lib/_chunks-es/QRCodeSVG.js.map +1 -1
- package/lib/_chunks-es/package.js +1 -1
- package/lib/_chunks-es/version.js +1 -1
- package/lib/index.js.map +1 -1
- package/package.json +14 -14
|
@@ -311,11 +311,7 @@ function validateWidths(panels, widthsToValidate, containerWidth) {
|
|
|
311
311
|
minWidth
|
|
312
312
|
} = panel;
|
|
313
313
|
minWidth = minWidth / containerWidth * 100, maxWidth != null && (maxWidth = maxWidth / containerWidth * 100);
|
|
314
|
-
const width = Math.min(
|
|
315
|
-
// eslint-disable-next-line no-negated-condition
|
|
316
|
-
maxWidth ?? 100,
|
|
317
|
-
Math.max(minWidth, widths[index] + remainingWidth)
|
|
318
|
-
);
|
|
314
|
+
const width = Math.min(maxWidth ?? 100, Math.max(minWidth, widths[index] + remainingWidth));
|
|
319
315
|
if (width !== widths[index] && (remainingWidth -= width - widths[index], widths[index] = width, Math.abs(remainingWidth).toFixed(3) === "0.000"))
|
|
320
316
|
break;
|
|
321
317
|
}
|