@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.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
 
2
2
  /*
3
- * @license @wistia/ui v0.14.21
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
  *
@@ -9306,6 +9306,7 @@ var StyledCheckboxInput = styled27.div`
9306
9306
  `;
9307
9307
  var StyledHiddenCheckboxInput = styled27.input`
9308
9308
  ${visuallyHiddenStyle}
9309
+ position: relative;
9309
9310
  `;
9310
9311
  var Checkbox = forwardRef12(
9311
9312
  ({
@@ -16279,7 +16280,7 @@ var getFramePosition = (frameIndex, framesPerRow, width, height, scaleFactor, fr
16279
16280
  const imageY = -height * row * scaleFactor;
16280
16281
  const rows = Math.ceil(frameCount / framesPerRow);
16281
16282
  const frameHeightInStoryboard = height / rows;
16282
- const verticalCenterOffset = (targetHeight - frameHeightInStoryboard) / 2;
16283
+ const verticalCenterOffset = height > width ? (targetHeight - frameHeightInStoryboard) / 2 : 0;
16283
16284
  const adjustedY = imageY - verticalCenterOffset;
16284
16285
  return `${imageX}px ${adjustedY}px`;
16285
16286
  };