elpaypg 2.1.0 → 2.1.1

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "elpaypg",
3
- "version": "2.1.0",
3
+ "version": "2.1.1",
4
4
  "description": "ELPAY PG - single-backend payment gateway module",
5
5
  "type": "module",
6
6
  "main": "./src/index.js",
@@ -2532,9 +2532,12 @@
2532
2532
  display: flex !important;
2533
2533
  flex-direction: row !important;
2534
2534
  flex: 1 !important;
2535
+ width: 100% !important;
2536
+ max-width: 100% !important;
2535
2537
  height: 100% !important;
2536
2538
  max-height: 100% !important;
2537
2539
  min-height: 0 !important;
2540
+ min-width: 0 !important;
2538
2541
  overflow: hidden !important;
2539
2542
  }
2540
2543
 
@@ -2691,6 +2694,42 @@
2691
2694
  }
2692
2695
  }
2693
2696
 
2697
+ /* NARROW DESKTOP (iframe width 768-1099px)
2698
+ The branding sidebar (310px) + methods rail (220px) together eat 530px of a
2699
+ ~900px modal, leaving too little for the QR workspace, which then gets clipped
2700
+ by the wrapper's overflow:hidden. Reclaim the branding panel and slim the rail
2701
+ so the right-hand column always fits. */
2702
+ @media (min-width: 768px) and (max-width: 1099px) {
2703
+ .ypg-pc-sidebar {
2704
+ display: none !important;
2705
+ }
2706
+
2707
+ .ypg-pc-methods-list {
2708
+ width: 190px !important;
2709
+ min-width: 190px !important;
2710
+ max-width: 190px !important;
2711
+ flex-shrink: 0 !important;
2712
+ padding: 12px 10px !important;
2713
+ }
2714
+
2715
+ .ypg-pc-active-view {
2716
+ padding: 14px 18px !important;
2717
+ }
2718
+ }
2719
+
2720
+ /* Very narrow desktop: let the QR card wrap instead of overflowing. */
2721
+ @media (min-width: 768px) and (max-width: 880px) {
2722
+ .ypg-pc-active-view {
2723
+ padding: 12px 14px !important;
2724
+ }
2725
+
2726
+ .ypg-qr-card-container {
2727
+ flex-wrap: wrap !important;
2728
+ justify-content: center !important;
2729
+ gap: 12px !important;
2730
+ }
2731
+ }
2732
+
2694
2733
  /* MOBILE SPECIFIC RULES - PINNED HEADER WITH CONTENT SCROLLING BEHIND IT */
2695
2734
  @media (max-width: 767px) {
2696
2735
  .ypg-pc-sidebar {
package/public/elpay.js CHANGED
@@ -710,9 +710,9 @@
710
710
  /* DESKTOP / PC MODAL STYLES (Razorpay 2-Column Exact Layout) */
711
711
  @media (min-width: 768px) {
712
712
  .elpay-checkout-container {
713
- width: 900px;
713
+ width: 960px;
714
714
  max-width: 95vw;
715
- height: 600px;
715
+ height: 620px;
716
716
  max-height: 92vh;
717
717
  border-radius: 16px;
718
718
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
@@ -722,6 +722,15 @@
722
722
  }
723
723
  }
724
724
 
725
+ /* Large desktop: give the branding sidebar room so the QR workspace keeps
726
+ full width. Below this breakpoint the checkout hides the sidebar instead. */
727
+ @media (min-width: 1200px) {
728
+ .elpay-checkout-container {
729
+ width: 1100px;
730
+ height: 660px;
731
+ }
732
+ }
733
+
725
734
  /* MOBILE BOTTOM DRAWER / BOTTOM SHEET STYLES */
726
735
  @media (max-width: 767px) {
727
736
  .elpay-checkout-backdrop {