@wistia/ui 0.14.21 → 0.14.22-beta.3173731c.97d5082
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.cjs +3 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +3 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
/*
|
|
3
|
-
* @license @wistia/ui v0.14.
|
|
3
|
+
* @license @wistia/ui v0.14.22-beta.3173731c.97d5082
|
|
4
4
|
*
|
|
5
5
|
* Copyright (c) 2024-2025, Wistia, Inc. and its affiliates.
|
|
6
6
|
*
|
|
@@ -9480,6 +9480,7 @@ var StyledCheckboxInput = import_styled_components43.default.div`
|
|
|
9480
9480
|
`;
|
|
9481
9481
|
var StyledHiddenCheckboxInput = import_styled_components43.default.input`
|
|
9482
9482
|
${visuallyHiddenStyle}
|
|
9483
|
+
position: relative;
|
|
9483
9484
|
`;
|
|
9484
9485
|
var Checkbox = (0, import_react38.forwardRef)(
|
|
9485
9486
|
({
|
|
@@ -16401,7 +16402,7 @@ var getFramePosition = (frameIndex, framesPerRow, width, height, scaleFactor, fr
|
|
|
16401
16402
|
const imageY = -height * row * scaleFactor;
|
|
16402
16403
|
const rows = Math.ceil(frameCount / framesPerRow);
|
|
16403
16404
|
const frameHeightInStoryboard = height / rows;
|
|
16404
|
-
const verticalCenterOffset = (targetHeight - frameHeightInStoryboard) / 2;
|
|
16405
|
+
const verticalCenterOffset = height > width ? (targetHeight - frameHeightInStoryboard) / 2 : 0;
|
|
16405
16406
|
const adjustedY = imageY - verticalCenterOffset;
|
|
16406
16407
|
return `${imageX}px ${adjustedY}px`;
|
|
16407
16408
|
};
|