@seaverse/payment-sdk 0.9.8 → 0.9.9
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.browser.js +13 -8
- package/dist/index.browser.js.map +1 -1
- package/dist/index.cjs +13 -8
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +13 -8
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2014,15 +2014,14 @@ class PaymentModal {
|
|
|
2014
2014
|
width: 100%;
|
|
2015
2015
|
max-width: ${this.options.maxWidth};
|
|
2016
2016
|
overflow-y: auto;
|
|
2017
|
+
overflow-x: hidden;
|
|
2017
2018
|
border-radius: ${this.options.borderRadius};
|
|
2018
2019
|
border: ${this.options.border};
|
|
2019
2020
|
background: ${this.options.background};
|
|
2020
2021
|
box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
|
|
2021
2022
|
transform: translateY(20px);
|
|
2022
2023
|
opacity: 0;
|
|
2023
|
-
|
|
2024
|
-
// 自定义滚动条样式
|
|
2025
|
-
this.modal.style.cssText += `
|
|
2024
|
+
outline: none;
|
|
2026
2025
|
scrollbar-width: thin;
|
|
2027
2026
|
scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
|
|
2028
2027
|
`;
|
|
@@ -8308,7 +8307,7 @@ class CreditPackageModal extends BasePackageModal {
|
|
|
8308
8307
|
closeOnEsc: false, // Disable ESC key to close
|
|
8309
8308
|
maxWidth: '1200px',
|
|
8310
8309
|
background: '#0a0a0f',
|
|
8311
|
-
border: '1px solid
|
|
8310
|
+
border: '1px solid #0a0a0f',
|
|
8312
8311
|
borderRadius: '24px',
|
|
8313
8312
|
onClose: () => {
|
|
8314
8313
|
this.cleanup();
|
|
@@ -8483,6 +8482,11 @@ class CreditPackageModal extends BasePackageModal {
|
|
|
8483
8482
|
applyModalStyling() {
|
|
8484
8483
|
// Modal background, border, and borderRadius are now configured
|
|
8485
8484
|
// via PaymentModal constructor options in createModal()
|
|
8485
|
+
// Remove content container padding — renderContent manages its own padding
|
|
8486
|
+
const contentContainer = this.getContentContainer();
|
|
8487
|
+
if (contentContainer) {
|
|
8488
|
+
contentContainer.style.padding = '0';
|
|
8489
|
+
}
|
|
8486
8490
|
// Modify title style
|
|
8487
8491
|
const titleElement = document.querySelector('.payment-modal-title');
|
|
8488
8492
|
if (titleElement) {
|
|
@@ -8558,6 +8562,7 @@ class CreditPackageModal extends BasePackageModal {
|
|
|
8558
8562
|
<div style="
|
|
8559
8563
|
padding: ${styles.containerPadding};
|
|
8560
8564
|
background: #0a0a0f;
|
|
8565
|
+
border-radius: 24px;
|
|
8561
8566
|
color: white;
|
|
8562
8567
|
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
|
|
8563
8568
|
">
|
|
@@ -8605,7 +8610,7 @@ class CreditPackageModal extends BasePackageModal {
|
|
|
8605
8610
|
const isLaptop = window.matchMedia('(max-width: 1400px)').matches;
|
|
8606
8611
|
let computeColumns = 5;
|
|
8607
8612
|
let packColumns = 4;
|
|
8608
|
-
let padding = '
|
|
8613
|
+
let padding = '40px 60px 60px';
|
|
8609
8614
|
let titleSize = '32px';
|
|
8610
8615
|
let subtitleSize = '16px';
|
|
8611
8616
|
let headerMargin = this.SPACING.lg;
|
|
@@ -8613,7 +8618,7 @@ class CreditPackageModal extends BasePackageModal {
|
|
|
8613
8618
|
if (isMobile) {
|
|
8614
8619
|
computeColumns = 1;
|
|
8615
8620
|
packColumns = 1;
|
|
8616
|
-
padding = '
|
|
8621
|
+
padding = '24px 16px 32px';
|
|
8617
8622
|
titleSize = '24px';
|
|
8618
8623
|
subtitleSize = '14px';
|
|
8619
8624
|
headerMargin = this.SPACING.md;
|
|
@@ -8622,7 +8627,7 @@ class CreditPackageModal extends BasePackageModal {
|
|
|
8622
8627
|
else if (isTablet) {
|
|
8623
8628
|
computeColumns = 2;
|
|
8624
8629
|
packColumns = 2;
|
|
8625
|
-
padding = '
|
|
8630
|
+
padding = '32px 32px 48px';
|
|
8626
8631
|
titleSize = '28px';
|
|
8627
8632
|
subtitleSize = '15px';
|
|
8628
8633
|
headerMargin = this.SPACING.md;
|
|
@@ -8631,7 +8636,7 @@ class CreditPackageModal extends BasePackageModal {
|
|
|
8631
8636
|
else if (isLaptop) {
|
|
8632
8637
|
computeColumns = 3;
|
|
8633
8638
|
packColumns = 3;
|
|
8634
|
-
padding = '
|
|
8639
|
+
padding = '36px 48px 60px';
|
|
8635
8640
|
titleSize = '32px';
|
|
8636
8641
|
subtitleSize = '16px';
|
|
8637
8642
|
headerMargin = this.SPACING.lg;
|