@samsheena/payment-ui 1.0.2 → 1.0.4

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.
Files changed (2) hide show
  1. package/dist/styles.css +19 -10
  2. package/package.json +1 -1
package/dist/styles.css CHANGED
@@ -30,23 +30,32 @@
30
30
 
31
31
  .glh-pay-backdrop {
32
32
  position: fixed;
33
- top: 0;
34
- left: 0;
33
+ inset: 0; /* top:0 right:0 bottom:0 left:0 */
35
34
  width: 100vw;
36
- height: 50vh;
35
+ height: 100vh;
37
36
 
38
37
  background: rgba(0,0,0,0.45);
38
+
39
+ /* IMPORTANT: allow scrolling if modal taller than screen */
40
+ overflow: auto;
41
+
42
+ /* instead of perfect center (which can push top out), use safe top padding */
39
43
  display: flex;
40
- align-items: center;
44
+ align-items: flex-start;
41
45
  justify-content: center;
42
- padding: 16px;
43
- z-index: 2147483647; /* super high */
46
+
47
+ padding: 24px 16px; /* top space so it won't hide behind navbar */
48
+
49
+ z-index: 2147483647; /* super high */
44
50
  }
51
+
45
52
  .glh-pay-backdrop,
46
- .glh-pay-backdrop * {
47
- box-sizing: border-box;
48
- }
49
-
53
+ .glh-pay-backdrop * {
54
+ box-sizing: border-box;
55
+ }
56
+
57
+
58
+
50
59
  .glh-pay-modal {
51
60
  width: 100%;
52
61
  max-width: 520px;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@samsheena/payment-ui",
3
- "version": "1.0.2",
3
+ "version": "1.0.4",
4
4
  "description": "Frontend-only payment account + subscription UI (₹5/month) with 100% discount",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.esm.js",