@goldenpine/react-form-builder2 0.20.3-build.5 → 0.20.3-build.7

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.
@@ -640,8 +640,11 @@ var Image = /*#__PURE__*/function (_React$Component13) {
640
640
  className: baseClasses
641
641
  }, /*#__PURE__*/_react["default"].createElement(_componentHeader["default"], this.props), this.props.data.src && /*#__PURE__*/_react["default"].createElement("img", {
642
642
  src: this.props.data.src,
643
- width: this.props.data.width,
644
- height: this.props.data.height
643
+ style: {
644
+ height: this.props.data.height,
645
+ width: this.props.data.width,
646
+ display: 'inline'
647
+ }
645
648
  }), !this.props.data.src && /*#__PURE__*/_react["default"].createElement("div", {
646
649
  className: "no-image"
647
650
  }, "No Image"));
@@ -785,7 +788,12 @@ var Camera = /*#__PURE__*/function (_React$Component17) {
785
788
  value: function render() {
786
789
  var _this13 = this;
787
790
  var imageStyle = {
788
- 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',
789
797
  objectPosition: this.props.data.center ? 'center' : 'left'
790
798
  };
791
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.5",
3
+ "version": "0.20.3-build.7",
4
4
  "description": "A complete form builder for react.",
5
5
  "main": "lib/index.js",
6
6
  "types": "types/index.d.ts",