@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.
@@ -40670,7 +40670,15 @@ const LoadingRectangleSvg = ({
40670
40670
  strokeWidth,
40671
40671
  networkSpeed: networkSpeedForced
40672
40672
  }) => {
40673
- const margin = Math.max(2, Math.min(width, height) * 0.03);
40673
+ // The stroke is centered on the path, so half of it falls outside: drawing
40674
+ // at half the stroke width puts its outer edge exactly on the box, whatever
40675
+ // the box. It used to be a share of the smaller dimension (3%, floored at
40676
+ // 2px), which held the line further and further inside as the box grew — a
40677
+ // caller placing the outline with `inset` got the distance it asked for on a
40678
+ // field and something several pixels inward on a card. Nothing needs the
40679
+ // extra room: the svg is `overflow: visible` and whoever positions the
40680
+ // wrapper already reserves the half stroke.
40681
+ const margin = strokeWidth / 2;
40674
40682
 
40675
40683
  // Calculate the drawable area
40676
40684
  const drawableWidth = width - margin * 2;