@youidian/sdk 3.4.2 → 3.4.3
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/client.cjs +2 -2
- package/dist/client.cjs.map +1 -1
- package/dist/client.js +2 -2
- package/dist/client.js.map +1 -1
- package/dist/index.cjs +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/login.cjs +1 -1
- package/dist/login.cjs.map +1 -1
- package/dist/login.js +1 -1
- package/dist/login.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -386,7 +386,7 @@ var HostedFrameModal = class {
|
|
|
386
386
|
const container = document.createElement("div");
|
|
387
387
|
Object.assign(container.style, {
|
|
388
388
|
width: options.width || "450px",
|
|
389
|
-
height: options.height || "min(
|
|
389
|
+
height: options.height || "min(680px, calc(100vh - 32px))",
|
|
390
390
|
backgroundColor: "transparent",
|
|
391
391
|
borderRadius: "28px",
|
|
392
392
|
overflow: "visible",
|
|
@@ -2267,7 +2267,7 @@ var PaymentUI = class extends HostedFrameModal {
|
|
|
2267
2267
|
);
|
|
2268
2268
|
const hostedFrame = this.openHostedFrame(finalUrl, {
|
|
2269
2269
|
allowedOrigin: options?.allowedOrigin,
|
|
2270
|
-
height: "min(
|
|
2270
|
+
height: "min(680px, calc(100vh - 32px))",
|
|
2271
2271
|
onCloseButton: () => {
|
|
2272
2272
|
this.cancelHostedOrder("modal_close");
|
|
2273
2273
|
options?.onCancel?.(this.activeOrderId || void 0);
|