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