mobile-snap 1.0.6 → 1.0.8

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/bin/cli.js +8 -2
  2. package/package.json +1 -1
package/bin/cli.js CHANGED
@@ -511,8 +511,11 @@ async function applyMockupBorder(browser, imageBuffer, deviceName, size, platfor
511
511
  }
512
512
  .device-wrapper {
513
513
  position: relative;
514
- padding: 40px; /* space for shadow */
515
- display: inline-block;
514
+ width: ${size.logical.width}px;
515
+ height: ${size.logical.height}px;
516
+ display: flex;
517
+ justify-content: center;
518
+ align-items: center;
516
519
  background: transparent;
517
520
  }
518
521
  .device-frame {
@@ -523,6 +526,9 @@ async function applyMockupBorder(browser, imageBuffer, deviceName, size, platfor
523
526
  0 0 0 13px #2f2f31,
524
527
  0 20px 50px rgba(0,0,0,0.6);
525
528
  overflow: hidden;
529
+ transform: scale(0.88);
530
+ transform-origin: center;
531
+ flex-shrink: 0;
526
532
  }
527
533
  .device-frame.ios {
528
534
  border-radius: 54px;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mobile-snap",
3
- "version": "1.0.6",
3
+ "version": "1.0.8",
4
4
  "description": "Automate pixel-precise App Store & Google Play screenshots from a local web server",
5
5
  "type": "module",
6
6
  "main": "bin/cli.js",