@devvit/ui-renderer 0.10.19-next-2024-04-16-dd9c95d6f.0 → 0.10.19-next-2024-04-16-f4768ff18.0

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.
@@ -476,10 +476,10 @@ export function imageStyle(url, resizeMode, width, height) {
476
476
  break;
477
477
  case BlockImageResizeMode.IMAGE_RESIZE_SCALE_DOWN:
478
478
  if (width > height) {
479
- size['backgroundSize'] = `clamp(0px, 100%, ${width}px) auto`;
479
+ size['backgroundSize'] = `auto clamp(0px, 100%, ${width}px)`;
480
480
  }
481
481
  else {
482
- size['backgroundSize'] = `auto clamp(0px, 100%, ${height}px)`;
482
+ size['backgroundSize'] = `clamp(0px, 100%, ${height}px) auto`;
483
483
  }
484
484
  break;
485
485
  case BlockImageResizeMode.IMAGE_RESIZE_NONE:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devvit/ui-renderer",
3
- "version": "0.10.19-next-2024-04-16-dd9c95d6f.0",
3
+ "version": "0.10.19-next-2024-04-16-f4768ff18.0",
4
4
  "license": "BSD-3-Clause",
5
5
  "repository": {
6
6
  "type": "git",
@@ -55,11 +55,10 @@
55
55
  },
56
56
  "types": "./index.d.ts",
57
57
  "dependencies": {
58
- "@devvit/protos": "0.10.19-next-2024-04-16-dd9c95d6f.0",
59
- "@devvit/public-api": "0.10.19-next-2024-04-16-dd9c95d6f.0",
60
- "@devvit/runtime-lite": "0.10.19-next-2024-04-16-dd9c95d6f.0",
61
- "@devvit/runtimes": "0.10.19-next-2024-04-16-dd9c95d6f.0",
62
- "@devvit/shared-types": "0.10.19-next-2024-04-16-dd9c95d6f.0",
58
+ "@devvit/protos": "0.10.19-next-2024-04-16-f4768ff18.0",
59
+ "@devvit/runtime-lite": "0.10.19-next-2024-04-16-f4768ff18.0",
60
+ "@devvit/runtimes": "0.10.19-next-2024-04-16-f4768ff18.0",
61
+ "@devvit/shared-types": "0.10.19-next-2024-04-16-f4768ff18.0",
63
62
  "@dotlottie/player-component": "2.7.2",
64
63
  "p-queue": "7.3.4",
65
64
  "rxjs": "7.8.1"
@@ -85,8 +84,9 @@
85
84
  },
86
85
  "devDependencies": {
87
86
  "@devvit/eslint-config": "0.10.18",
87
+ "@devvit/public-api": "0.10.19-next-2024-04-16-f4768ff18.0",
88
88
  "@devvit/repo-tools": "0.10.18",
89
- "@devvit/tsconfig": "0.10.19-next-2024-04-16-dd9c95d6f.0",
89
+ "@devvit/tsconfig": "0.10.19-next-2024-04-16-f4768ff18.0",
90
90
  "@lit-labs/ssr": "^2.2.3",
91
91
  "@lit/localize": "0.11.4",
92
92
  "@open-wc/testing-helpers": "2.3.0",
@@ -119,5 +119,5 @@
119
119
  "directory": "dist"
120
120
  },
121
121
  "source": "./src/index.ts",
122
- "gitHead": "b392eb4933a123395711635f6ce50c935b96664f"
122
+ "gitHead": "ab37d75bc366da651981b6797bfd10e84bf557c1"
123
123
  }