@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.
- package/dist/app.js +1 -1
- package/lib/form-elements/index.js +11 -3
- package/package.json +1 -1
|
@@ -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
|
-
|
|
644
|
-
|
|
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
|
-
|
|
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';
|