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