@lobehub/editor 1.34.0 → 1.34.1

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.
@@ -84,15 +84,16 @@ var LazyImage = /*#__PURE__*/memo(function (_ref) {
84
84
  onError: onError,
85
85
  onLoad: function onLoad(e) {
86
86
  var img = e.currentTarget;
87
+ var width = Math.min(img.naturalWidth, img.getBoundingClientRect().width);
87
88
  if (isSVGImage) {
88
89
  setDimensions({
89
90
  height: img.naturalHeight,
90
- width: img.naturalWidth
91
+ width: width
91
92
  });
92
93
  }
93
94
  _onLoad === null || _onLoad === void 0 || _onLoad({
94
95
  height: img.naturalHeight,
95
- width: img.naturalWidth
96
+ width: width
96
97
  });
97
98
  },
98
99
  src: src,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lobehub/editor",
3
- "version": "1.34.0",
3
+ "version": "1.34.1",
4
4
  "description": "A powerful and extensible rich text editor built on Meta's Lexical framework, providing a modern editing experience with React integration.",
5
5
  "keywords": [
6
6
  "lobehub",