@jsenv/navi 0.29.307 → 0.29.308

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.
@@ -39998,7 +39998,15 @@ const LoadingRectangleSvg = ({
39998
39998
  strokeWidth,
39999
39999
  networkSpeed: networkSpeedForced
40000
40000
  }) => {
40001
- const margin = Math.max(2, Math.min(width, height) * 0.03);
40001
+ // The stroke is centered on the path, so half of it falls outside: drawing
40002
+ // at half the stroke width puts its outer edge exactly on the box, whatever
40003
+ // the box. It used to be a share of the smaller dimension (3%, floored at
40004
+ // 2px), which held the line further and further inside as the box grew — a
40005
+ // caller placing the outline with `inset` got the distance it asked for on a
40006
+ // field and something several pixels inward on a card. Nothing needs the
40007
+ // extra room: the svg is `overflow: visible` and whoever positions the
40008
+ // wrapper already reserves the half stroke.
40009
+ const margin = strokeWidth / 2;
40002
40010
 
40003
40011
  // Calculate the drawable area
40004
40012
  const drawableWidth = width - margin * 2;