@goldenpine/react-form-builder2 0.20.3-build.6 → 0.20.3-patch.2

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.
@@ -788,7 +788,12 @@ var Camera = /*#__PURE__*/function (_React$Component17) {
788
788
  value: function render() {
789
789
  var _this13 = this;
790
790
  var imageStyle = {
791
- objectFit: 'scale-down',
791
+ // 2025/11/11
792
+ // 'scale-down' looks to keep the original size of image on form-builder-generator.
793
+ // and sometimes the image is too small. Supposeing admin want to show the image in bigger size,
794
+ // so adjust it "contain" to make it bigger if possible.
795
+ // "contain" is supposed to "Preserves the aspect ratio, and fits the image inside the container, without cutting"
796
+ objectFit: 'contain',
792
797
  objectPosition: this.props.data.center ? 'center' : 'left'
793
798
  };
794
799
  var baseClasses = 'SortableItem rfb-item';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@goldenpine/react-form-builder2",
3
- "version": "0.20.3-build.6",
3
+ "version": "0.20.3-patch.2",
4
4
  "description": "A complete form builder for react.",
5
5
  "main": "lib/index.js",
6
6
  "types": "types/index.d.ts",