@cosxai/ui 0.13.4 → 0.13.5
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/package.json
CHANGED
|
@@ -380,7 +380,13 @@ export const SignaturePad = forwardRef<SignaturePadHandle, SignaturePadProps>(
|
|
|
380
380
|
display: "flex",
|
|
381
381
|
flexDirection: "column",
|
|
382
382
|
gap: 8,
|
|
383
|
+
// fit-content sizes to the canvas's intrinsic `width` prop —
|
|
384
|
+
// which is exactly what overflowed narrow phones: the wrapper
|
|
385
|
+
// itself grew to 480px, so the canvas's own maxWidth:100%
|
|
386
|
+
// resolved against an already-overflowing parent. Cap the
|
|
387
|
+
// wrapper too; the flex-column children then shrink with it.
|
|
383
388
|
width: "fit-content",
|
|
389
|
+
maxWidth: "100%",
|
|
384
390
|
}),
|
|
385
391
|
[],
|
|
386
392
|
);
|