@devvit/ui-renderer 0.10.19-next-2024-04-16-9e95fdccf.0 → 0.10.19-next-2024-04-16-e10359ef6.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.
- package/blocks/attributes.js +2 -2
- package/package.json +8 -8
package/blocks/attributes.js
CHANGED
|
@@ -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)
|
|
479
|
+
size['backgroundSize'] = `auto clamp(0px, 100%, ${width}px)`;
|
|
480
480
|
}
|
|
481
481
|
else {
|
|
482
|
-
size['backgroundSize'] = `
|
|
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-
|
|
3
|
+
"version": "0.10.19-next-2024-04-16-e10359ef6.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-
|
|
59
|
-
"@devvit/
|
|
60
|
-
"@devvit/
|
|
61
|
-
"@devvit/
|
|
62
|
-
"@devvit/shared-types": "0.10.19-next-2024-04-16-9e95fdccf.0",
|
|
58
|
+
"@devvit/protos": "0.10.19-next-2024-04-16-e10359ef6.0",
|
|
59
|
+
"@devvit/runtime-lite": "0.10.19-next-2024-04-16-e10359ef6.0",
|
|
60
|
+
"@devvit/runtimes": "0.10.19-next-2024-04-16-e10359ef6.0",
|
|
61
|
+
"@devvit/shared-types": "0.10.19-next-2024-04-16-e10359ef6.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-e10359ef6.0",
|
|
88
88
|
"@devvit/repo-tools": "0.10.18",
|
|
89
|
-
"@devvit/tsconfig": "0.10.19-next-2024-04-16-
|
|
89
|
+
"@devvit/tsconfig": "0.10.19-next-2024-04-16-e10359ef6.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": "
|
|
122
|
+
"gitHead": "05245af95b3ecd5110a15f118d256762f770020a"
|
|
123
123
|
}
|